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

Filters cannot be added as symbolically linked directories

    XMLWordPrintable

Details

    Description

      We use symbolic links when adding some plugins to Moodle sites which works fine for most plugin types (like mod, blocks, auth, etc...) but does not work for filters.

      The functionality in lib/filterlib.php that looks for filter plugins uses the get_list_of_plugins() function in lib/moodlelib.php, which is not seeing symbolic links as being a valid directory (using php function "filetype"). The other plugin types work because they are generated via function get_plugin_list() which uses php function "is_dir" which does identify the symbolically linked directories as valid directories. The get_list_of_plugins function should be changed to allow symbolic links (or then modify the filter type logic to use get_plugin_list like the other types).

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              mvidberg Marko Vidberg
              Sam Hemelryk Sam Hemelryk
              Frédéric Massart Frédéric Massart
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Jul/13