Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MDL-11561 admin tree improvements and bugfixing
[moodle.git]
/
filter
/
emailprotect
/
filter.php
diff --git
a/filter/emailprotect/filter.php
b/filter/emailprotect/filter.php
index
3a61318
..
9e706c5
100644
(file)
--- a/
filter/emailprotect/filter.php
+++ b/
filter/emailprotect/filter.php
@@
-5,6
+5,11
@@
function emailprotect_filter($courseid, $text) {
+
+ if (!empty($CFG->formatstring)) {
+ return $text;
+ }
+
/// Do a quick check using stripos to avoid unnecessary work
if (strpos($text, '@') === false) {
return $text;