mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 06:25:33 +02:00
MDL-19824 Converted print_box* to $OUTPUT->box*
This commit is contained in:
parent
456d32fd29
commit
ebb19abaab
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user