MDL-23979 switching CFG->dirroot is a really bad idea, I borked this test when adding context parameter, but I am not going to fix it because moodle core functions can not work properly if you change dirroot on the fly, sorry; proper way would be to tweak the test class to use different direcotry
This commit is contained in:
@@ -35,6 +35,9 @@ if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
}
|
||||
|
||||
//TODO: messing with CFG->dirroot is a really bad idea! I am not going to fix this, sorry. (skodak)
|
||||
// if anybody wants to fix this then filter manager has to be modified so that it uses different dir, sorry
|
||||
|
||||
require_once($CFG->libdir . '/filterlib.php');
|
||||
|
||||
class testable_filter_manager extends filter_manager {
|
||||
Reference in New Issue
Block a user