From 0f256abc0c0d2f7316227f053dff8d9213279f4c Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 4 Jan 2005 19:43:09 +0000 Subject: [PATCH] Fix for bug 2336: I accidentally removed the editing button from courses when fixing bug 2328. Fortunately, Gustav was on the lookout. --- lib/pagelib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pagelib.php b/lib/pagelib.php index e8c6c30bca..4536a3f828 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -296,9 +296,13 @@ class page_course extends page_base { } } + // The "Editing On" button will be appearing only in the "main" course screen + // (i.e., no breadcrumbs other than the default one added inside this function) + $button = empty($morebreadcrumbs) ? update_course_icon($this->courserecord->id) : ' '; + $loggedinas = '

'. user_login_string($this->courserecord, $USER) .'

'; print_header($title, $this->courserecord->fullname, $crumbtext, - '', '', true, ' ', $loggedinas); + '', '', true, $button, $loggedinas); } // SELF-REPORTING SECTION -- 2.39.5