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

The langdoc preview do not work on subdirectories

    XMLWordPrintable

    Details

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

      Description

      The langdoc_preview_url function doesn't work as expected on nested subdirectories of the help tree!

      I suggest this fix on line 246 of the admin/langdoc.php file

      $url = '/help.php?module='.implode('/',array_slice($currentpathexp,0,count($currentpathexp)-1)).'&file='.end($currentpathexp);

      instead of

      $url = '/help.php?module='.$currentpathexp[0].'&file='.$currentpathexp[1];

      as not all the paths are LANGDIR/help/module/file... eg LANGDIR/help/enrol/authorize/aba.html !!!

        Attachments

          Activity

            People

            Assignee:
            mudrd8mz David Mudrák (@mudrd8mz)
            Reporter:
            deligant Christian Deligant
            Tester:
            Nobody
            Participants:
            Component watchers:
            David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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