Index: trunk/phase3/includes/actions/HistoryAction.php |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | } |
114 | 114 | |
115 | 115 | // Fail nicely if article doesn't exist. |
116 | | - if ( !$this->getTitle()->exists() ) { |
| 116 | + if ( !$this->page->exists() ) { |
117 | 117 | $out->addWikiMsg( 'nohistory' ); |
118 | 118 | # show deletion/move log if there is an entry |
119 | 119 | LogEventsList::showLogExtract( |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | $offsets = array(); |
208 | 208 | } |
209 | 209 | |
210 | | - $page_id = $this->getTitle()->getArticleID(); |
| 210 | + $page_id = $this->page->getId(); |
211 | 211 | |
212 | 212 | return $dbr->select( 'revision', |
213 | 213 | Revision::selectFields(), |
— | — | @@ -343,7 +343,7 @@ |
344 | 344 | 'tables' => array( 'revision', 'user' ), |
345 | 345 | 'fields' => array_merge( Revision::selectFields(), Revision::selectUserFields() ), |
346 | 346 | 'conds' => array_merge( |
347 | | - array( 'rev_page' => $this->getTitle()->getArticleID() ), |
| 347 | + array( 'rev_page' => $this->getWikiPage()->getId() ), |
348 | 348 | $this->conds ), |
349 | 349 | 'options' => array( 'USE INDEX' => array( 'revision' => 'page_timestamp' ) ), |
350 | 350 | 'join_conds' => array( |
— | — | @@ -676,7 +676,7 @@ |
677 | 677 | $cur, |
678 | 678 | array(), |
679 | 679 | array( |
680 | | - 'diff' => $this->getTitle()->getLatestRevID(), |
| 680 | + 'diff' => $this->getWikiPage()->getLatest(), |
681 | 681 | 'oldid' => $rev->getId() |
682 | 682 | ) |
683 | 683 | ); |
Index: trunk/phase3/includes/actions/RawAction.php |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | # output previous revision, or nothing if there isn't one |
168 | 168 | if( !$oldid ) { |
169 | 169 | # get the current revision so we can get the penultimate one |
170 | | - $oldid = $this->getTitle()->getLatestRevID(); |
| 170 | + $oldid = $this->page->getLatest(); |
171 | 171 | } |
172 | 172 | $prev = $this->getTitle()->getPreviousRevisionId( $oldid ); |
173 | 173 | $oldid = $prev ? $prev : -1 ; |