Index: trunk/phase3/includes/Article.php |
— | — | @@ -363,13 +363,12 @@ |
364 | 364 | * @return mixed string on success, false on failure |
365 | 365 | */ |
366 | 366 | public function getUndoText( Revision $undo, Revision $undoafter = null ) { |
367 | | - $currentRev = Revision::newFromTitle( $this->mTitle ); |
368 | | - if ( !$currentRev ) { |
| 367 | + $cur_text = $this->getRawText(); |
| 368 | + if ( $cur_text === false ) { |
369 | 369 | return false; // no page |
370 | 370 | } |
371 | 371 | $undo_text = $undo->getText(); |
372 | 372 | $undoafter_text = $undoafter->getText(); |
373 | | - $cur_text = $currentRev->getText(); |
374 | 373 | |
375 | 374 | if ( $cur_text == $undo_text ) { |
376 | 375 | # No use doing a merge if it's just a straight revert. |