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

Navigation not set up properly for resources

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 1.9, 2.0
    • Libraries
    • None
    • MOODLE_19_STABLE
    • 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

            timhunt Tim Hunt
            ganderson Gary Anderson
            Nobody Nobody
            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:
              3/Mar/08