]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19824 Converted print_box* to $OUTPUT->box*
authornicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 05:49:57 +0000 (05:49 +0000)
committernicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 05:49:57 +0000 (05:49 +0000)
theme/index.php
theme/preview.php

index 4720e60a0142eb129bda6f5227842a4e0319a6d1..8644ae1de8b80c3028977c75769575494df0ddb9 100644 (file)
@@ -44,15 +44,15 @@ if ($choose and confirm_sesskey()) {
     $readmehtml = $CFG->themedir . '/' . $choose . '/README.html';
     $readmetxt = $CFG->themedir . '/' . $choose . '/README.txt';
     if (is_readable($readmehtml)) {
-        print_box_start();
+        echo $OUTPUT->box_start();
         readfile($readmehtml);
-        print_box_end();
+        echo $OUTPUT->box_end();
 
     } else if (is_readable($readmetxt)) {
-        print_box_start();
+        echo $OUTPUT->box_start();
         $text = file_get_contents($readmetxt);
         echo format_text($text, FORMAT_MOODLE);
-        print_box_end();
+        echo $OUTPUT->box_end();
     }
 
     print_continue($CFG->wwwroot . '/' . $CFG->admin . '/index.php');
@@ -128,7 +128,7 @@ foreach ($themes as $themename => $themedir) {
     if ($themename != $CFG->theme) {
         $infocell .= print_single_button('index.php', array('choose' => $themename, 'sesskey' => $sesskey),
                 get_string('choose'), 'get', null, true);
-        
+
     }
     $row[] = $infocell;
 
index 0db051db1f95507dca6c435faa487779c2706976..17896852bff826b3d7b4e73e140a7beaab1de6fc 100644 (file)
@@ -42,8 +42,8 @@ $navlinks[] = array('name' => $strpreview, 'link' => null, 'type' => 'misc');
 $navigation = build_navigation($navlinks);
 print_header("$SITE->shortname: $strpreview", $SITE->fullname, $navigation);
 
-print_box_start();
+echo $OUTPUT->box_start();
 echo $OUTPUT->heading($preview);
-print_box_end();
+echo $OUTPUT->box_end();
 
 echo $OUTPUT->footer();