Adding option $fixLbug to fix bug 948549
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 6 Aug 2004 17:52:43 +0000 (17:52 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 6 Aug 2004 17:52:43 +0000 (17:52 +0000)
includes/Parser.php

index 86d9632..37d0a93 100644 (file)
@@ -822,6 +822,9 @@ class Parser
                $fname = 'Parser::internalParse';
                wfProfileIn( $fname );
 
+               global $fixLbug ;
+               if ( $fixLbug ) $text = preg_replace ( '/(l|L)\'/' , '\\1&#39;' , $text ) ;
+               
                $text = $this->removeHTMLtags( $text );
                $text = $this->replaceVariables( $text, $args );