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:
Petr Skoda 2010-08-28 12:20:09 +00:00
parent 50999f1478
commit 1dadfe15f2

View file

@ -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 {