From: skodak Date: Mon, 30 Apr 2007 17:13:37 +0000 (+0000) Subject: MDL-9647 simplify dealing with headers/footers in admin sections; fixed double footer... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=635773c604f098977000c77c31a4245032f87d48;p=moodle.git MDL-9647 simplify dealing with headers/footers in admin sections; fixed double footers when using print_footer() in admin page --- diff --git a/lib/weblib.php b/lib/weblib.php index 6d58f7ea4a..60889fc5fe 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2422,7 +2422,8 @@ function print_footer($course=NULL, $usercourse=NULL, $return=false) { global $USER, $CFG, $THEME, $COURSE; if (defined('ADMIN_EXT_HEADER_PRINTED') and !defined('ADMIN_EXT_FOOTER_PRINTED')) { - admin_externalpage_print_footer(); + admin_externalpage_print_footer(); + return; } /// Course links