if (!set_config("release", $release)) {
notify("ERROR: Could not update release version in database!!");
}
- notice(get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'), 'index.php');
- exit;
+ notice(get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'), 'index.php', 'none');
}
/// Send $CFG->unicodedb to DB to have it available for next requests
* @param string $link ?
* @todo Finish documenting this function
*/
-function notice ($message, $link='') {
- global $CFG;
+function notice ($message, $link='', $course=NULL) {
+ global $CFG, $SITE;
$message = clean_text($message);
$link = clean_text($link);
echo '<br />';
print_simple_box($message, 'center', '50%', '', '20', 'generalbox', 'notice');
print_continue($link);
- print_footer(get_site());
- die;
+ if (empty($course)) {
+ print_footer($SITE);
+ } else {
+ print_footer($course);
+ }
+ exit;
}
/**