* Making a linkprefix message that hold the link prefix previously hardcoded
[lhc/web/wiklou.git] / includes / Parser.php
index bd8c912..f7d32f5 100644 (file)
@@ -1213,7 +1213,7 @@ class Parser
                if ( !$e1_img ) { $e1_img = "/^([{$tc}]+)\\|(.*)\$/sD"; }
                # Match the end of a line for a word that's not followed by whitespace,
                # e.g. in the case of 'The Arab al[[Razi]]', 'al' will be matched
-               static $e2 = '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD';
+               $e2 = wfMsgForContent( 'linkprefix' );
 
                $useLinkPrefixExtension = $wgContLang->linkPrefixExtension();