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

Navigation not set up properly for resources

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9, 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      When $extranavlinks is not set on a call into build_navigation (like happens when looking at a resource folder), a warning is produced and a subsequent call to build the links fails.

      To fix, replace line 3479 of weblib.php,v 1.970.2.6 2007-10-12 15:11:39 tjhunt
      $navlinks = array_merge($navlinks, $extranavlinks);

      with

      if (isset($extranavlinks))

      { $navlinks = array_merge($navlinks, $extranavlinks); }

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            ganderson Gary Anderson
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08