The Horrible Twin for r28127. The call happens when content is fetched from
authorRobert Stojnić <rainman@users.mediawiki.org>
Fri, 9 May 2008 22:21:37 +0000 (22:21 +0000)
committerRobert Stojnić <rainman@users.mediawiki.org>
Fri, 9 May 2008 22:21:37 +0000 (22:21 +0000)
parser cache, and the title needs converting. A consequence of returning ''
is bad regexp that produces odd conversion behavior for titles reported on
various occasions.

One of these days, I'm just going to completely rewrite this thing, I swear!

languages/LanguageConverter.php

index 08171c0..f2b19fc 100644 (file)
@@ -168,7 +168,7 @@ class LanguageConverter {
                   3. place holders created by the parser
                */
                global $wgParser;
-               if (isset($wgParser))
+               if (isset($wgParser) && $wgParser->UniqPrefix()!='')
                        $marker = '|' . $wgParser->UniqPrefix() . '[\-a-zA-Z0-9]+';
                else
                        $marker = "";