From 635773c604f098977000c77c31a4245032f87d48 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 30 Apr 2007 17:13:37 +0000 Subject: [PATCH] MDL-9647 simplify dealing with headers/footers in admin sections; fixed double footers when using print_footer() in admin page --- lib/weblib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5