-
Bug
-
Resolution: Fixed
-
Minor
-
3.2.5, 3.3, 3.3.2, 3.4
-
MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-60762-master -
-
If admin directory is renamed to something else (according to good security practice), usertours blocks the upgrade of Moodle or when installed before renaming the admin directory doesn't appear in Administration->Appearance at all.
Hardcoded 'admin' directory is the reason for this situation.
Examples of code:
$filepath = $CFG->dirroot . '/admin/tool/usertours/tours/' . $filename;
To reproduce bug:
- install version prior to 3.2 of Moodle
- rename admin directory to ie. cooladmin,
- set the $CFG->admin='cooladmin'
- replace the Moodle code for version 3.2 or later
- rename admin directory to cooladmin,
- copy proper config.php (with the $CFG->admin='cooladmin' set )
- Run an upgrade.
- will help resolve
-
MDL-61765 Fix instances of the hard-coded admin folder to use $CFG->admin
- Closed