Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14400

Setting $THEME->makenavmenulist = true in a theme's config.php throws off a php notice

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9
    • 1.9.5
    • Themes
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      Setting $THEME->makenavmenulist = true in a theme's config.php throws off a php notice:
      Notice: Undefined property: object::$cm in \moodle\lib\weblib.php on line 5443
      I've just noticed this with latest moodle 1.9 version because the theme I use (orangechoc) has this line in its config.php file:
      $THEME->makenavmenulist = true;
      I wonder what is the use of makenavmenulist anyway, as I notice that NONE of the themes in Moodle distribution has this enabled (it's set to FALSE for all of the themes!).
      Either makenavmenulist is useful and used, and something should be done about that PHP error notice OR it's useless and should be deleted from moodle.
      Joseph

      Attachments

        Activity

          People

            timhunt Tim Hunt
            rezeau Joseph Rézeau
            Sam Hemelryk Sam Hemelryk
            Huong Nguyen, Bas Brands, Mathew May
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/May/09