MDL-42664 Fix the filter_manager instantiation
authorDavid Mudrák <david@moodle.com>
Fri, 1 Nov 2013 06:36:24 +0000 (07:36 +0100)
committerDavid Mudrák <david@moodle.com>
Fri, 1 Nov 2013 08:18:10 +0000 (09:18 +0100)
commitc928c607185bbc659421701a33e06246b7e36c96
tree8dd189d83cc73ba4288389c50a12538fda03666c
parent5386f0bbfe279002af3ca217ff50615449dc652f
MDL-42664 Fix the filter_manager instantiation

For legacy reasons, the $CFG->perfdebug uses values 7 for disabled and 15 for
enabled. Because of this typo, Moodle has always created instance of the slower
performance_measuring_filter_manager instead of the standard filter_manager,
regardless the perfdebug setting.
lib/filterlib.php
lib/tests/filterlib_test.php