From: nicolasconnault Date: Thu, 20 Aug 2009 13:14:05 +0000 (+0000) Subject: MDL-19788 Upgraded calls to link_to_popup_window() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f383c56769cef18e9f849d619bf34cdb1471e2e;p=moodle.git MDL-19788 Upgraded calls to link_to_popup_window() --- diff --git a/auth/cas/config.html b/auth/cas/config.html index f0742e5124..a4ceb20212 100644 --- a/auth/cas/config.html +++ b/auth/cas/config.html @@ -162,7 +162,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? if (isset($err['hostname'])) { - formerr($err['hostname']); + echo $OUTPUT->error_text($err['hostname']); } @@ -192,7 +192,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? if (isset($err['baseuri'])) { - formerr($err['baseuri']); + echo $OUTPUT->error_text($err['baseuri']); } @@ -222,7 +222,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? if (isset($err['port'])) { - formerr($err['port']); + echo $OUTPUT->error_text($err['port']); } @@ -252,7 +252,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? if (isset($err['casversion'])) { - formerr($err['casversion']); + echo $OUTPUT->error_text($err['casversion']); } @@ -389,7 +389,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['host_url']); ?> @@ -419,7 +419,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? echo $OUTPUT->select(html_select::make($versions, 'version', $config->version, false)); - if (isset($err['version'])) formerr($err['version']); + if (isset($err['version'])) echo $OUTPUT->error_text($err['version']); ?> @@ -449,7 +449,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? if (isset($err['ldapencoding'])) { - formerr($err['ldapencoding']); + echo $OUTPUT->error_text($err['ldapencoding']); } @@ -485,7 +485,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['bind_dn']); ?> @@ -505,7 +505,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['bind_pw']); ?> @@ -537,7 +537,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? select(html_select::make($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false)); ?> - + error_text($err['user_type']); ?> @@ -559,7 +559,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['contexts']); ?> @@ -609,7 +609,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? echo $OUTPUT->select(html_select::make($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false)); - if (isset($err['opt_deref'])) formerr($err['opt_deref']); + if (isset($err['opt_deref'])) echo $OUTPUT->error_text($err['opt_deref']); ?> @@ -637,7 +637,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['user_attribute']); ?> @@ -659,7 +659,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['memberattribute']); ?> @@ -679,7 +679,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['memberattribute_isdn']); ?> @@ -699,7 +699,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['objectclass']); ?> @@ -733,7 +733,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['attrcreators']); ?> @@ -753,7 +753,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['groupecreators']); ?> diff --git a/auth/db/config.html b/auth/db/config.html index a4ddfaca4b..b78643342f 100644 --- a/auth/db/config.html +++ b/auth/db/config.html @@ -59,7 +59,7 @@ error_text($err["host"]); } ?> @@ -98,7 +98,7 @@ error_text($err["name"]); } ?> @@ -113,7 +113,7 @@ error_text($err["user"]); } ?> @@ -128,7 +128,7 @@ error_text($err["pass"]); } ?> @@ -145,7 +145,7 @@ error_text($err["table"]); } ?> @@ -160,7 +160,7 @@ error_text($err["fielduser"]); } ?> @@ -175,7 +175,7 @@ error_text($err["fieldpass"]); } ?> @@ -206,7 +206,7 @@ error_text($err['extencoding']); } ?> @@ -237,7 +237,7 @@ error_text($err['changepasswordurl']); } ?> diff --git a/auth/fc/config.html b/auth/fc/config.html index 3b287310c0..9f44af172d 100644 --- a/auth/fc/config.html +++ b/auth/fc/config.html @@ -30,7 +30,7 @@ : - + error_text($err["host"]); ?> @@ -41,7 +41,7 @@ : - + error_text($err["host"]); ?> @@ -52,7 +52,7 @@ : - + error_text($err["userid"]); ?> @@ -62,7 +62,7 @@ : - + error_text($err["passwd"]); ?> @@ -73,7 +73,7 @@ : - + error_text($err["creators"]); ?> @@ -87,7 +87,7 @@ error_text($err['changepasswordurl']); } ?> diff --git a/auth/imap/config.html b/auth/imap/config.html index a1ef40a2ca..31c104093e 100644 --- a/auth/imap/config.html +++ b/auth/imap/config.html @@ -24,7 +24,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['host']); } ?> @@ -62,7 +62,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['port']); } ?> @@ -77,7 +77,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['changepasswordurl']); } ?> diff --git a/auth/ldap/config.html b/auth/ldap/config.html index dda5127793..4c6a8b2247 100644 --- a/auth/ldap/config.html +++ b/auth/ldap/config.html @@ -81,7 +81,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['host_url']); ?> @@ -96,7 +96,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? $versions[2] = '2'; $versions[3] = '3'; echo $OUTPUT->select(html_select::make($versions, 'version', $config->version, false)); - if (isset($err['version'])) formerr($err['version']); + if (isset($err['version'])) echo $OUTPUT->error_text($err['version']); ?> @@ -111,7 +111,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? error_text($err['ldapencoding']); } ?> @@ -138,7 +138,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['bind_dn']); ?> @@ -148,7 +148,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['bind_pw']); ?> @@ -164,7 +164,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? select(html_select::make($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false)); ?> - + error_text($err['user_type']); ?> @@ -175,7 +175,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['contexts']); ?> @@ -200,7 +200,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? $opt_deref[LDAP_DEREF_NEVER] = get_string('no'); $opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes'); echo $OUTPUT->select(html_select::make($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, false)); - if (isset($err['opt_deref'])) formerr($err['opt_deref']); + if (isset($err['opt_deref'])) echo $OUTPUT->error_text($err['opt_deref']); ?> @@ -214,7 +214,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['user_attribute']); ?> @@ -225,7 +225,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['memberattribute']); ?> @@ -235,7 +235,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['memberattribute_isdn']); ?> @@ -245,7 +245,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['objectclass']); ?> @@ -301,7 +301,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? error_text($err['changepasswordurl']); } ?> @@ -323,7 +323,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? $expiration['0'] = 'no'; $expiration['1'] = 'LDAP'; echo $OUTPUT->select(html_select::make($expiration, 'expiration', $config->expiration, false)); - if (isset($err['expiration'])) formerr($err['expiration']); + if (isset($err['expiration'])) echo $OUTPUT->error_text($err['expiration']); ?> @@ -336,7 +336,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - error_text($err['expiration_warning']); ?> @@ -348,7 +348,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - error_text($err['expireattr']); ?> @@ -370,7 +370,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - error_text($err['graceattr']); ?> @@ -400,7 +400,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['create_context']); ?> @@ -417,7 +417,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there? - + error_text($err['creators']); ?> diff --git a/auth/mnet/config.html b/auth/mnet/config.html index d40492028e..a3be452982 100644 --- a/auth/mnet/config.html +++ b/auth/mnet/config.html @@ -25,7 +25,7 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict' error_text($err['rpc_negotiation_timeout']); } ?> diff --git a/auth/nntp/config.html b/auth/nntp/config.html index 99ea1db646..5d50324261 100644 --- a/auth/nntp/config.html +++ b/auth/nntp/config.html @@ -21,7 +21,7 @@ if (!isset($config->changepasswordurl)) { error_text($err["host"]); } ?> @@ -43,7 +43,7 @@ if (!isset($config->changepasswordurl)) { error_text($err["port"]); } ?> @@ -58,7 +58,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['changepasswordurl']); } ?> diff --git a/auth/pop3/config.html b/auth/pop3/config.html index a17b3ea15c..cdc30cfcee 100644 --- a/auth/pop3/config.html +++ b/auth/pop3/config.html @@ -27,7 +27,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['host']); } ?> @@ -65,7 +65,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['port']); } ?> @@ -80,7 +80,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['mailbox']); } ?> @@ -95,7 +95,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['changepasswordurl']); } ?> diff --git a/auth/radius/config.html b/auth/radius/config.html index aa86aa761f..65ae8b6b59 100644 --- a/auth/radius/config.html +++ b/auth/radius/config.html @@ -36,7 +36,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['host']); } ?> @@ -51,7 +51,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['nasport']); } ?> @@ -72,7 +72,7 @@ if (!isset($config->changepasswordurl)) { echo $OUTPUT->select(html_select::make($radiustype, 'radiustype', $config->radiustype, false)); if (isset($err['radiustype'])) { - formerr($err['radiustype']); + echo $OUTPUT->error_text($err['radiustype']); } ?> @@ -88,7 +88,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['secret']); } ?> @@ -103,7 +103,7 @@ if (!isset($config->changepasswordurl)) { error_text($err['changepasswordurl']); } ?> diff --git a/auth/shibboleth/config.html b/auth/shibboleth/config.html index 43cc733f29..46097f601c 100755 --- a/auth/shibboleth/config.html +++ b/auth/shibboleth/config.html @@ -126,7 +126,7 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/ error_text($err['changepasswordurl']); } ?> diff --git a/auth/shibboleth/index_form.html b/auth/shibboleth/index_form.html index e8a455c1b0..ade24491d5 100644 --- a/auth/shibboleth/index_form.html +++ b/auth/shibboleth/index_form.html @@ -23,7 +23,7 @@ if ($show_instructions) { '; - formerr($errormsg); + echo $OUTPUT->error_text($errormsg); echo ''; }