Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -52,9 +52,10 @@ |
53 | 53 | return; |
54 | 54 | } |
55 | 55 | $this->page = Title::newFromUrl( $this->target ); |
56 | | - # If this is just one revision, get the title from it. |
57 | | - # This allows for more flexibility with page moves... |
58 | | - if( count($this->oldids) === 1 ) { |
| 56 | + # If we have revisions, get the title from the first one |
| 57 | + # since they should all be from the same page. This allows |
| 58 | + # for more flexibility with page moves... |
| 59 | + if( count($this->oldids) > 0 ) { |
59 | 60 | $rev = Revision::newFromId( $this->oldids[0] ); |
60 | 61 | $this->page = $rev ? $rev->getTitle() : $this->page; |
61 | 62 | } |