|
By nicolasconnault:
MDL-19878 Upgraded calls to helpbutton, print_simple_box* and notify
|
| 145 |
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) { |
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) { |
| 146 |
print_upgrade_reload("index.php?agreelicense=1&lang=$CFG->lang"); |
print_upgrade_reload("index.php?agreelicense=1&lang=$CFG->lang"); |
| 147 |
} else { |
} else { |
| 148 |
notify(get_string('environmentok', 'admin'), 'notifysuccess'); |
echo $OUTPUT->notification(get_string('environmentok', 'admin'), 'notifysuccess'); |
| 149 |
print_continue("index.php?agreelicense=1&confirmrelease=1&lang=$CFG->lang"); |
echo $OUTPUT->continue_button("index.php?agreelicense=1&confirmrelease=1&lang=$CFG->lang"); |
| 150 |
} |
} |
| 151 |
|
|
| 152 |
echo $OUTPUT->footer(); |
echo $OUTPUT->footer(); |
| 209 |
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) { |
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) { |
| 210 |
print_upgrade_reload('index.php?confirmupgrade=1'); |
print_upgrade_reload('index.php?confirmupgrade=1'); |
| 211 |
} else { |
} else { |
| 212 |
notify(get_string('environmentok', 'admin'), 'notifysuccess'); |
echo $OUTPUT->notification(get_string('environmentok', 'admin'), 'notifysuccess'); |
| 213 |
if (empty($CFG->skiplangupgrade)) { |
if (empty($CFG->skiplangupgrade)) { |
| 214 |
echo $OUTPUT->box_start('generalbox', 'notice'); |
echo $OUTPUT->box_start('generalbox', 'notice'); |
| 215 |
print_string('langpackwillbeupdated', 'admin'); |
print_string('langpackwillbeupdated', 'admin'); |
| 216 |
echo $OUTPUT->box_end(); |
echo $OUTPUT->box_end(); |
| 217 |
} |
} |
| 218 |
print_continue('index.php?confirmupgrade=1&confirmrelease=1'); |
echo $OUTPUT->continue_button('index.php?confirmupgrade=1&confirmrelease=1'); |
| 219 |
} |
} |
| 220 |
|
|
| 221 |
echo $OUTPUT->footer(); |
echo $OUTPUT->footer(); |
| 231 |
echo $OUTPUT->box_end(); |
echo $OUTPUT->box_end(); |
| 232 |
print_plugin_tables(); |
print_plugin_tables(); |
| 233 |
print_upgrade_reload('index.php?confirmupgrade=1&confirmrelease=1'); |
print_upgrade_reload('index.php?confirmupgrade=1&confirmrelease=1'); |
| 234 |
print_continue('index.php?confirmupgrade=1&confirmrelease=1&confirmplugincheck=1'); |
echo $OUTPUT->continue_button('index.php?confirmupgrade=1&confirmrelease=1&confirmplugincheck=1'); |
| 235 |
echo $OUTPUT->footer(); |
echo $OUTPUT->footer(); |
| 236 |
die(); |
die(); |
| 237 |
|
|
| 240 |
upgrade_core($version, true); |
upgrade_core($version, true); |
| 241 |
} |
} |
| 242 |
} else if ($version < $CFG->version) { |
} else if ($version < $CFG->version) { |
| 243 |
notify('WARNING!!! The code you are using is OLDER than the version that made these databases!'); |
echo $OUTPUT->notification('WARNING!!! The code you are using is OLDER than the version that made these databases!'); |
| 244 |
} |
} |
| 245 |
|
|
| 246 |
// Updated human-readable release version if necessary |
// Updated human-readable release version if necessary |
| 356 |
$lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}'); |
$lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}'); |
| 357 |
if (time() - $lastcron > 3600 * 24) { |
if (time() - $lastcron > 3600 * 24) { |
| 358 |
$strinstallation = get_string('installation', 'install'); |
$strinstallation = get_string('installation', 'install'); |
| 359 |
$helpbutton = helpbutton('install', $strinstallation, 'moodle', true, false, '', true); |
$helpbutton = $OUTPUT->help_icon(moodle_help_icon::make('install', $strinstallation)); |
| 360 |
echo $OUTPUT->box(get_string('cronwarning', 'admin').' '.$helpbutton, 'generalbox adminwarning'); |
echo $OUTPUT->box(get_string('cronwarning', 'admin').' '.$helpbutton, 'generalbox adminwarning'); |
| 361 |
} |
} |
| 362 |
|
|