mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'w07_MDL-26380_20_mediafilterperf' of git://github.com/skodak/moodle
This commit is contained in:
commit
42bdecde6d
@ -46,6 +46,11 @@ class filter_mediaplugin extends moodle_text_filter {
|
||||
// non string data can not be filtered anyway
|
||||
return $text;
|
||||
}
|
||||
if (stripos($text, '</a>') === false) {
|
||||
// performance shortcut - all regexes bellow end with the </a> tag,
|
||||
// if not present nothing can match
|
||||
return $text;
|
||||
}
|
||||
$newtext = $text; // fullclone is slow and not needed here
|
||||
|
||||
if (!empty($CFG->filter_mediaplugin_enable_mp3)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user