* (bug 3489) PHP 5.1 compat problem with captioned images
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 18 Sep 2005 01:19:33 +0000 (01:19 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 18 Sep 2005 01:19:33 +0000 (01:19 +0000)
RELEASE-NOTES
includes/Parser.php

index c5198d2..6537359 100644 (file)
@@ -113,6 +113,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * (bug 3485) Fix bogus warning about filename capitalization when off
 * (bug 2792) Update rebuildrecentchanges.inc for new schema
 * Special:Import/importDump fixes: report XML parse errors, accept <minor/>
+* (bug 3489) PHP 5.1 compat problem with captioned images
 
 
 === Caveats ===
index df27432..81e932a 100644 (file)
@@ -1345,7 +1345,8 @@ class Parser
                                        $found = false;
                                        while (isset ($a[$k+1]) ) {
                                                #look at the next 'line' to see if we can close it there
-                                               $next_line =  array_shift(array_splice( $a, $k + 1, 1) );
+                                               $spliced = array_splice( $a, $k + 1, 1 );
+                                               $next_line = array_shift( $spliced );
                                                if( preg_match("/^(.*?]].*?)]](.*)$/sD", $next_line, $m) ) {
                                                # the first ]] closes the inner link, the second the image
                                                        $found = true;