]> git.mjollnir.org Git - moodle.git/commitdiff
Bugfix: when configuring a block in the site index, the site name was
authordefacer <defacer>
Thu, 27 Jan 2005 23:56:46 +0000 (23:56 +0000)
committerdefacer <defacer>
Thu, 27 Jan 2005 23:56:46 +0000 (23:56 +0000)
being displayed twice in the breadcrumbs.

lib/pagelib.php

index 098372ffba941cf47153eecb92e3f3619e889570..88e6bd5769c30591ecc87cdc11023bce4b9da489 100644 (file)
@@ -341,7 +341,13 @@ class page_course extends page_base {
             $title = str_replace($search, $replace, $title);
         }
 
-        $breadcrumbs = array($this->courserecord->shortname => $CFG->wwwroot.'/course/view.php?id='.$this->courserecord->id);
+        if($this->courserecord->id == SITEID) {
+            $breadcrumbs = array();
+        }
+        else {
+            $breadcrumbs = array($this->courserecord->shortname => $CFG->wwwroot.'/course/view.php?id='.$this->courserecord->id);
+        }
+
         if(!empty($morebreadcrumbs)) {
             $breadcrumbs = array_merge($breadcrumbs, $morebreadcrumbs);
         }