From 92a6d3f5108d0a20b7adb8195cb8f0f4b1672651 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 19 Dec 2006 06:49:45 +0000 Subject: [PATCH] MDL-7861, adding third param to notice() function, so that the right footer is printed. Currently missing admin footer --- admin/lang.php | 2 +- lib/weblib.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/admin/lang.php b/admin/lang.php index adb5ca4e64..aa503b34c5 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -257,7 +257,7 @@ 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") { diff --git a/lib/weblib.php b/lib/weblib.php index 086b39fb7e..23dc0b1dac 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4676,7 +4676,7 @@ function editorshortcutshelpbutton() { * @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); @@ -4693,6 +4693,13 @@ function notice ($message, $link='', $course=NULL) { echo '
'; 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 { -- 2.39.5