]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug 2336:
authordefacer <defacer>
Tue, 4 Jan 2005 19:43:09 +0000 (19:43 +0000)
committerdefacer <defacer>
Tue, 4 Jan 2005 19:43:09 +0000 (19:43 +0000)
I accidentally removed the editing button from courses when fixing bug 2328.
Fortunately, Gustav was on the lookout.

lib/pagelib.php

index e8c6c30bca003c9c61b45ae6431bf78ec4de8828..4536a3f82866f385373cd1b21bf1fb66a314c89c 100644 (file)
@@ -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) : '&nbsp;';
+
         $loggedinas = '<p class="logininfo">'. user_login_string($this->courserecord, $USER) .'</p>';
         print_header($title, $this->courserecord->fullname, $crumbtext,
-                     '', '', true, '&nbsp;', $loggedinas);
+                     '', '', true, $button, $loggedinas);
     }
 
     // SELF-REPORTING SECTION