mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
More multilang support for site fullname, plus a couple extra comments. merged from MOODLE_18_STABLE
This commit is contained in:
parent
12970ac363
commit
c543cfe15f
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,11 @@
|
||||||
|
|
||||||
function emailprotect_filter($courseid, $text) {
|
function emailprotect_filter($courseid, $text) {
|
||||||
|
|
||||||
|
|
||||||
|
if (!empty($CFG->formatstring)) {
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
|
||||||
/// Do a quick check using stripos to avoid unnecessary work
|
/// Do a quick check using stripos to avoid unnecessary work
|
||||||
if (strpos($text, '@') === false) {
|
if (strpos($text, '@') === false) {
|
||||||
return $text;
|
return $text;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue