Followup r82550: define variables passed by reference to preg_match() beforehand...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 23 Feb 2011 15:54:19 +0000 (15:54 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 23 Feb 2011 15:54:19 +0000 (15:54 +0000)
languages/LanguageConverter.php

index 7170787..175d0ae 100644 (file)
@@ -353,6 +353,8 @@ class LanguageConverter {
                // Guard against delimiter nulls in the input
                $text = str_replace( "\000", '', $text );
 
+               $markupMatches = null;
+               $elementMatches = null;
                while ( $startPos < strlen( $text ) ) {
                        if ( preg_match( $reg, $text, $markupMatches, PREG_OFFSET_CAPTURE, $startPos ) ) {
                                $elementPos = $markupMatches[0][1];