MDL-32508 navigation: show empty sections
authorDan Poltawski <dan@moodle.com>
Mon, 30 Apr 2012 03:46:15 +0000 (11:46 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 4 May 2012 02:53:03 +0000 (10:53 +0800)
lib/navigationlib.php

index d2e7ed5..2aa79fe 100644 (file)
@@ -934,7 +934,7 @@ class global_navigation extends navigation_node {
     /** @var array An array for containing  root navigation nodes */
     protected $rootnodes = array();
     /** @var bool A switch for whether to show empty sections in the navigation */
     /** @var array An array for containing  root navigation nodes */
     protected $rootnodes = array();
     /** @var bool A switch for whether to show empty sections in the navigation */
-    protected $showemptysections = false;
+    protected $showemptysections = true;
     /** @var bool A switch for whether courses should be shown within categories on the navigation. */
     protected $showcategories = null;
     /** @var array An array of stdClasses for users that the navigation is extended for */
     /** @var bool A switch for whether courses should be shown within categories on the navigation. */
     protected $showcategories = null;
     /** @var array An array of stdClasses for users that the navigation is extended for */