Use getLatest() accessor
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 28 Jun 2011 21:39:55 +0000 (21:39 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 28 Jun 2011 21:39:55 +0000 (21:39 +0000)
includes/RawPage.php

index 4d5af46..dab6640 100644 (file)
@@ -60,7 +60,7 @@ class RawPage {
                                if( !$oldid ) {
                                        # get the current revision so we can get the penultimate one
                                        $this->mArticle->getTouched();
-                                       $oldid = $this->mArticle->mLatest;
+                                       $oldid = $this->mArticle->getLatest();
                                }
                                $prev = $this->mTitle->getPreviousRevisionId( $oldid );
                                $oldid = $prev ? $prev : -1 ;