mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-17738 fixed uninitialised setting
This commit is contained in:
parent
301977f88e
commit
ce5a068b2f
@ -30,13 +30,15 @@ abstract class filter_base {
|
||||
}
|
||||
|
||||
// back compatable with old filter plugins
|
||||
$textfilters = explode(',', $CFG->textfilters);
|
||||
foreach ($textfilters as $v) {
|
||||
$text_filter = basename($v).'_filter';
|
||||
if (empty(self::$filters[$text_filter]) && is_readable($CFG->dirroot .'/'. $v .'/filter.php')) {
|
||||
include_once($CFG->dirroot .'/'. $v .'/filter.php');
|
||||
if (function_exists($text_filter)) {
|
||||
$text = $text_filter($courseid, $text);
|
||||
if (isset($CFG->textfilters)) {
|
||||
$textfilters = explode(',', $CFG->textfilters);
|
||||
foreach ($textfilters as $v) {
|
||||
$text_filter = basename($v).'_filter';
|
||||
if (empty(self::$filters[$text_filter]) && is_readable($CFG->dirroot .'/'. $v .'/filter.php')) {
|
||||
include_once($CFG->dirroot .'/'. $v .'/filter.php');
|
||||
if (function_exists($text_filter)) {
|
||||
$text = $text_filter($courseid, $text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user