* (bug 5757) Fix premature cutoff in LanguageConverter with extra end markers
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 29 Apr 2006 23:24:23 +0000 (23:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 29 Apr 2006 23:24:23 +0000 (23:24 +0000)
RELEASE-NOTES
languages/LanguageConverter.php

index bee6817..3e7cd41 100644 (file)
@@ -149,6 +149,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5565) Add a class attribute to the table on Special:Allpages
 * "lang=xx" option for parser test cases to set content language
 * (bug 5764) Friulian translation updated
+* (bug 5757) Fix premature cutoff in LanguageConverter with extra end markers
 
 
 == Compatibility ==
index 38cb3dc..cbe738c 100644 (file)
@@ -262,7 +262,7 @@ class LanguageConverter {
                $tfirst = array_shift($tarray);
                $text = $this->autoConvert($tfirst);
                foreach($tarray as $txt) {
-                       $marked = explode($this->mMarkup['end'], $txt);
+                       $marked = explode($this->mMarkup['end'], $txt, 2);
                        $flags = array();
                        $tt = explode($this->mMarkup['flagsep'], $marked[0], 2);