-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5.4, 5.0
The file in admin/tool/brickfield/db/uninstall.php has invalid content - it should do the plugin uninstall in function xmldb_tool_brickfield_uninstall(), not when including the file.
Fix proposal
instead of:
defined('MOODLE_INTERNAL') || die; |
|
// Remove the 'enableaccessibilitytools' configuration setting in case of reinstall.
|
unset_config('enableaccessibilitytools'); |
use this:
defined('MOODLE_INTERNAL') || die; |
|
/**
|
* Uninstall Brickfield tool.
|
* @return true
|
*/
|
function xmldb_tool_brickfield_uninstall(): bool {
|
// Remove the 'enableaccessibilitytools' configuration setting in case of reinstall. |
unset_config('enableaccessibilitytools'); |
|
return true; |
}
|
Note that this is a small bug only, nothing should include this file directly except uninstallation, that is likely why this was not discovered during testing.