mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
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:
parent
50999f1478
commit
1dadfe15f2
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ if (!defined('MOODLE_INTERNAL')) {
|
||||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
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');
|
require_once($CFG->libdir . '/filterlib.php');
|
||||||
|
|
||||||
class testable_filter_manager extends filter_manager {
|
class testable_filter_manager extends filter_manager {
|
Loading…
Add table
Add a link
Reference in a new issue