Merge branch MDL-29189-master of git://github.com/samhemelryk/moodle
[moodle.git] / lib / navigationlib.php
index b2cf0a9..382c003 100644 (file)
@@ -2158,7 +2158,9 @@ class global_navigation extends navigation_node {
         if ($issite) {
             $parent = $this;
             $url = null;
-            $shortname = get_string('sitepages');
+            if (empty($CFG->usesitenameforsitepages)) {
+                $shortname = get_string('sitepages');
+            }
         } else if ($ismycourse) {
             $parent = $this->rootnodes['mycourses'];
             $url = new moodle_url('/course/view.php', array('id'=>$course->id));