Fix for r102997: forgot to change that variable
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 14 Nov 2011 21:42:27 +0000 (21:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 14 Nov 2011 21:42:27 +0000 (21:42 +0000)
includes/Article.php

index b4602df..5fbfc3b 100644 (file)
@@ -229,7 +229,7 @@ class Article extends Page {
                                // Revision title doesn't match the page title given?
                                if ( $this->mPage->getID() != $this->mRevision->getPage() ) {
                                        $function = array( get_class( $this->mPage ), 'newFromID' );
-                                       $this->mPage = call_user_func( $function, $revision->getPage() );
+                                       $this->mPage = call_user_func( $function, $this->mRevision->getPage() );
                                }
                        }
                }