|
By samhemelryk:
admin MDL-19787 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants
|
| 119 |
|
|
| 120 |
if (empty($agreelicense)) { |
if (empty($agreelicense)) { |
| 121 |
$strlicense = get_string('license'); |
$strlicense = get_string('license'); |
| 122 |
$navigation = build_navigation(array(array('name'=>$strlicense, 'link'=>null, 'type'=>'misc'))); |
$PAGE->navbar->add($strlicense); |
| 123 |
print_header($strinstallation.' - Moodle '.$CFG->target_release, $strinstallation, $navigation, '', '', false, ' ', ' '); |
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release); |
| 124 |
|
$PAGE->set_heading($strinstallation); |
| 125 |
|
$PAGE->set_cacheable(false); |
| 126 |
|
echo $OUTPUT->header(); |
| 127 |
echo $OUTPUT->heading('<a href="http://moodle.org">Moodle</a> - Modular Object-Oriented Dynamic Learning Environment'); |
echo $OUTPUT->heading('<a href="http://moodle.org">Moodle</a> - Modular Object-Oriented Dynamic Learning Environment'); |
| 128 |
echo $OUTPUT->heading(get_string('copyrightnotice')); |
echo $OUTPUT->heading(get_string('copyrightnotice')); |
| 129 |
$copyrightnotice = text_to_html(get_string('gpl')); |
$copyrightnotice = text_to_html(get_string('gpl')); |
| 136 |
} |
} |
| 137 |
if (empty($confirmrelease)) { |
if (empty($confirmrelease)) { |
| 138 |
$strcurrentrelease = get_string('currentrelease'); |
$strcurrentrelease = get_string('currentrelease'); |
| 139 |
$navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc'))); |
$PAGE->navbar->add($strcurrentrelease); |
| 140 |
print_header($strinstallation.' - Moodle '.$CFG->target_release, $strinstallation, $navigation, '', '', false, ' ', ' '); |
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release); |
| 141 |
|
$PAGE->set_heading($strinstallation); |
| 142 |
|
$PAGE->set_cacheable(false); |
| 143 |
|
echo $OUTPUT->header(); |
| 144 |
echo $OUTPUT->heading("Moodle $release"); |
echo $OUTPUT->heading("Moodle $release"); |
| 145 |
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'); |
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'); |
| 146 |
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack |
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack |
| 159 |
} |
} |
| 160 |
|
|
| 161 |
$strdatabasesetup = get_string('databasesetup'); |
$strdatabasesetup = get_string('databasesetup'); |
|
$navigation = build_navigation(array(array('name'=>$strdatabasesetup, 'link'=>null, 'type'=>'misc'))); |
|
| 162 |
upgrade_get_javascript(); |
upgrade_get_javascript(); |
| 163 |
print_header($strinstallation.' - Moodle '.$CFG->target_release, $strinstallation, $navigation, '', '', false, ' ', ' '); |
$PAGE->navbar->add($strdatabasesetup); |
| 164 |
|
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release); |
| 165 |
|
$PAGE->heading($strinstallation); |
| 166 |
|
$PAGE->set_cacheable(false); |
| 167 |
|
echo $OUTPUT->header(); |
| 168 |
|
|
| 169 |
if (!$DB->setup_is_unicodedb()) { |
if (!$DB->setup_is_unicodedb()) { |
| 170 |
if (!$DB->change_db_encoding()) { |
if (!$DB->change_db_encoding()) { |
| 195 |
$strdatabasechecking = get_string('databasechecking', '', $a); |
$strdatabasechecking = get_string('databasechecking', '', $a); |
| 196 |
|
|
| 197 |
if (empty($confirmupgrade)) { |
if (empty($confirmupgrade)) { |
| 198 |
$navigation = build_navigation(array(array('name'=>$strdatabasechecking, 'link'=>null, 'type'=>'misc'))); |
$PAGE->navbar->add($strdatabasechecking); |
| 199 |
print_header($strdatabasechecking, $stradministration, $navigation, '', '', false, ' ', ' '); |
$PAGE->set_title($strdatabasechecking); |
| 200 |
|
$PAGE->heading($stradministration); |
| 201 |
|
$PAGE->set_cacheable(false); |
| 202 |
|
echo $OUTPUT->header(); |
| 203 |
$continueform = new html_form(); |
$continueform = new html_form(); |
| 204 |
$continueform->method = 'get'; |
$continueform->method = 'get'; |
| 205 |
$continueform->url = new moodle_url('index.php', array('confirmupgrade' => 1)); |
$continueform->url = new moodle_url('index.php', array('confirmupgrade' => 1)); |
| 212 |
|
|
| 213 |
} else if (empty($confirmrelease)){ |
} else if (empty($confirmrelease)){ |
| 214 |
$strcurrentrelease = get_string('currentrelease'); |
$strcurrentrelease = get_string('currentrelease'); |
| 215 |
$navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc'))); |
$PAGE->navbar->add($strcurrentrelease); |
| 216 |
print_header($strcurrentrelease, $strcurrentrelease, $navigation, '', '', false, ' ', ' '); |
$PAGE->set_title($strcurrentrelease); |
| 217 |
|
$PAGE->heading($strcurrentrelease); |
| 218 |
|
$PAGE->set_cacheable(false); |
| 219 |
|
echo $OUTPUT->header(); |
| 220 |
echo $OUTPUT->heading("Moodle $release"); |
echo $OUTPUT->heading("Moodle $release"); |
| 221 |
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'); |
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'); |
| 222 |
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack |
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack |
| 240 |
|
|
| 241 |
} elseif (empty($confirmplugins)) { |
} elseif (empty($confirmplugins)) { |
| 242 |
$strplugincheck = get_string('plugincheck'); |
$strplugincheck = get_string('plugincheck'); |
| 243 |
$navigation = build_navigation(array(array('name'=>$strplugincheck, 'link'=>null, 'type'=>'misc'))); |
$PAGE->navbar->add($strplugincheck); |
| 244 |
print_header($strplugincheck, $strplugincheck, $navigation, '', '', false, ' ', ' '); |
$PAGE->set_title($strplugincheck); |
| 245 |
|
$PAGE->heading($strplugincheck); |
| 246 |
|
$PAGE->set_cacheable(false); |
| 247 |
|
echo $OUTPUT->header(); |
| 248 |
echo $OUTPUT->heading($strplugincheck); |
echo $OUTPUT->heading($strplugincheck); |
| 249 |
echo $OUTPUT->box_start('generalbox', 'notice'); |
echo $OUTPUT->box_start('generalbox', 'notice'); |
| 250 |
print_string('pluginchecknotice'); |
print_string('pluginchecknotice'); |