From 5231a15c0f089e077d7cd13cc0ad3139914e3366 Mon Sep 17 00:00:00 2001
From: nicolasconnault <nicolasconnault>
Date: Thu, 6 Aug 2009 02:52:39 +0000
Subject: [PATCH] MDL-19799 Migrated calls to close_window_button()

---
 help.php                | 2 +-
 lib/form/editorhelp.php | 2 +-
 lib/installlib.php      | 4 ++--
 sso/hive/expired.php    | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

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 '<p class="helpindex"><a href="help.php?file=index.html">'. get_string('helpindex') .'</a></p>';
 
 // 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 '</ul>';
 print_simple_box_end();
 // End of page.
-close_window_button();
+echo $OUTPUT->close_window_button();
 global $CFG;
 echo '<p align="center"><a href="'.$CFG->wwwroot.'/help.php?file=index.html">'. get_string('helpindex') .'</a></p>';
 
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 '</body></html>';
     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 @@
       </form>
 <br />
 <?php
-    close_window_button();
+    echo $OUTPUT->close_window_button();
 ?>
-- 
2.39.5