Revert part of 16036 using an undefined magic word, spews errors everywhere
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 13 Aug 2006 23:42:38 +0000 (23:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 13 Aug 2006 23:42:38 +0000 (23:42 +0000)
includes/Parser.php

index 604cb44..ca08deb 100644 (file)
@@ -4086,11 +4086,9 @@ class Parser
                $mwWidth  =& MagicWord::get( 'img_width' );
                $mwCenter =& MagicWord::get( 'img_center' );
                $mwFramed =& MagicWord::get( 'img_framed' );
-               $mwPage   =& MagicWord::get( 'img_page' );
                $caption = '';
 
                $width = $height = $framed = $thumb = false;
-               $page = null;
                $manual_thumb = '' ;
 
                foreach( $part as $key => $val ) {
@@ -4100,9 +4098,6 @@ class Parser
                                # use manually specified thumbnail
                                $thumb=true;
                                $manual_thumb = $match;
-                       } elseif ( ! is_null( $match = $mwPage->matchVariableStartToEnd($val) ) ) {
-                               # Select a page in a multipage document
-                               $page = $match;
                        } elseif ( ! is_null( $mwRight->matchVariableStartToEnd($val) ) ) {
                                # remember to set an alignment, don't render immediately
                                $align = 'right';
@@ -4141,8 +4136,7 @@ class Parser
 
                # Linker does the rest
                $sk =& $this->mOptions->getSkin();
-               return $sk->makeImageLinkObj( $nt, $caption, $alt, $align, $width, $height,
-                               $framed, $thumb, $manual_thumb, $page );
+               return $sk->makeImageLinkObj( $nt, $caption, $alt, $align, $width, $height, $framed, $thumb, $manual_thumb );
        }
 
        /**