Follow up on r53041. Fix a __NOCC__ failure caused by myself and I'm stupid to report...
authorPhilip Tzou <philip@users.mediawiki.org>
Thu, 17 Sep 2009 04:16:17 +0000 (04:16 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Thu, 17 Sep 2009 04:16:17 +0000 (04:16 +0000)
languages/LanguageConverter.php

index be76107..77e83aa 100644 (file)
@@ -532,6 +532,8 @@ class LanguageConverter {
                        if( $this->mDoContentConvert )
                                // Bug 19620: should convert a string immediately after a new rule added.
                                $text .= $this->autoConvert( $marked[0], $plang );
+                       else
+                               $text .= $marked[0];
 
                        if ( array_key_exists( 1, $marked ) ) {
                                $crule = new ConverterRule($marked[1], $this);
@@ -546,7 +548,6 @@ class LanguageConverter {
 
                // Remove the last delimiter (wasn't real)
                $text = substr( $text, 0, -strlen( $this->mMarkup['end'] ) );
-
                return $text;
        }