Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.7, 2.3.4, 2.4.1
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_25_STABLE
-
w24_
MDL-38109_m26_pluginlist -
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).