mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
More multilang support for site fullname, plus a couple extra comments.
This commit is contained in:
parent
ca31757ba3
commit
3af559d414
5 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -41,6 +41,7 @@ function multilang_filter($courseid, $text) {
|
|||
|
||||
// [pj] I don't know about you but I find this new implementation funny :P
|
||||
// [skodak] I was laughing while rewriting it ;-)
|
||||
// [nicolasconnault] Should support inverted attributes: <span class="multilang" lang="en"> (Doesn't work curently)
|
||||
|
||||
if (empty($CFG->filter_multilang_force_old) and !empty($CFG->filter_multilang_converted)) {
|
||||
// new syntax
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue