From: nicolasconnault Date: Thu, 6 Aug 2009 02:52:39 +0000 (+0000) Subject: MDL-19799 Migrated calls to close_window_button() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5231a15c0f089e077d7cd13cc0ad3139914e3366;p=moodle.git MDL-19799 Migrated calls to close_window_button() --- diff --git a/help.php b/help.php index 655c8f54bf..221823e764 100644 --- a/help.php +++ b/help.php @@ -107,7 +107,7 @@ if (!$helpfound) { } // End of page. -close_window_button(); +echo $OUTPUT->close_window_button(); echo '

'. get_string('helpindex') .'

'; // Offer a link to the alternative help file language diff --git a/lib/form/editorhelp.php b/lib/form/editorhelp.php index b2b0df5347..a8fa02e141 100644 --- a/lib/form/editorhelp.php +++ b/lib/form/editorhelp.php @@ -66,7 +66,7 @@ foreach ($topics as $i => $topic){ echo ''; print_simple_box_end(); // End of page. -close_window_button(); +echo $OUTPUT->close_window_button(); global $CFG; echo '

'. get_string('helpindex') .'

'; diff --git a/lib/installlib.php b/lib/installlib.php index 7187bf02e1..c36bb51acb 100644 --- a/lib/installlib.php +++ b/lib/installlib.php @@ -218,7 +218,7 @@ function install_generate_configphp($database, $cfg, $userealpath=false) { * @param string $help */ function install_print_help_page($help) { - global $CFG; + global $CFG, $OUTPUT; @header('Content-Type: text/html; charset=UTF-8'); @header('Cache-Control: no-store, no-cache, must-revalidate'); @@ -248,7 +248,7 @@ function install_print_help_page($help) { default: print_string($help, 'install'); } - close_window_button(); + echo $OUTPUT->close_window_button(); echo ''; die; } diff --git a/sso/hive/expired.php b/sso/hive/expired.php index ef0d9b3145..e67dc9d6a3 100644 --- a/sso/hive/expired.php +++ b/sso/hive/expired.php @@ -43,5 +43,5 @@
close_window_button(); ?>