X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2FMagicWord.php;h=09317d7b1f1062e5a65c5b7e03e345a4c88919f6;hb=fb3ae6fbe31738a0c886dcbeab90ca39bff9c167;hp=391e05aea1c0188885dd57751af123bf898fa549;hpb=57eaa2bf04ce1b48bd89c10defe4de5b7d31f047;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 391e05aea1..09317d7b1f 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -169,6 +169,7 @@ class MagicWord { 'localtimestamp', 'directionmark', 'contentlanguage', + 'pagelanguage', 'numberofadmins', 'cascadingsources', ]; @@ -525,7 +526,7 @@ class MagicWord { $this->mFound = false; $text = preg_replace_callback( $this->getRegex(), - [ &$this, 'pregRemoveAndRecord' ], + [ $this, 'pregRemoveAndRecord' ], $text ); @@ -540,7 +541,7 @@ class MagicWord { $this->mFound = false; $text = preg_replace_callback( $this->getRegexStart(), - [ &$this, 'pregRemoveAndRecord' ], + [ $this, 'pregRemoveAndRecord' ], $text );