Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -2133,7 +2133,7 @@ |
2134 | 2134 | } |
2135 | 2135 | |
2136 | 2136 | # Get the last editor |
2137 | | - $current = Revision::newFromTitle( $this->mTitle ); |
| 2137 | + $current = $this->getRevision(); |
2138 | 2138 | if ( is_null( $current ) ) { |
2139 | 2139 | # Something wrong... no page? |
2140 | 2140 | return array( array( 'notanarticle' ) ); |
— | — | @@ -2431,9 +2431,8 @@ |
2432 | 2432 | public function getAutoDeleteReason( &$hasHistory ) { |
2433 | 2433 | global $wgContLang; |
2434 | 2434 | |
2435 | | - $dbw = wfGetDB( DB_MASTER ); |
2436 | 2435 | // Get the last revision |
2437 | | - $rev = Revision::newFromTitle( $this->getTitle() ); |
| 2436 | + $rev = $this->getRevision(); |
2438 | 2437 | |
2439 | 2438 | if ( is_null( $rev ) ) { |
2440 | 2439 | return false; |
— | — | @@ -2454,6 +2453,8 @@ |
2455 | 2454 | } |
2456 | 2455 | } |
2457 | 2456 | |
| 2457 | + $dbw = wfGetDB( DB_MASTER ); |
| 2458 | + |
2458 | 2459 | // Find out if there was only one contributor |
2459 | 2460 | // Only scan the last 20 revisions |
2460 | 2461 | $res = $dbw->select( 'revision', 'rev_user_text', |