if (!empty($somethingfound)) {
print_continue("lang.php");
} else {
- notice(get_string("languagegood"), "lang.php");
+ notice(get_string("languagegood"), "lang.php", '', $adminroot);
}
} else if ($mode == "compare") {
* @param string $link ?
* @todo Finish documenting this function
*/
-function notice ($message, $link='', $course=NULL) {
+function notice ($message, $link='', $course=NULL, $adminroot='') {
global $CFG, $SITE;
$message = clean_text($message);
echo '<br />';
print_simple_box($message, 'center', '50%', '', '20', 'generalbox', 'notice');
print_continue($link);
+
+ // xhtml strict fix, need to make sure it's the right footer
+ if ($adminroot) {
+ admin_externalpage_print_footer($adminroot);
+ exit;
+ }
+
if (empty($course)) {
print_footer($SITE);
} else {