Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | var $isCssJsSubpage = false; |
51 | 51 | var $isCssSubpage = false; |
52 | 52 | var $isJsSubpage = false; |
53 | | - var $deletedSinceEdit = false; |
| 53 | + var $deletedSinceEdit; |
54 | 54 | var $formtype; |
55 | 55 | var $firsttime; |
56 | 56 | var $lastDelete; |
— | — | @@ -260,8 +260,12 @@ |
261 | 261 | * deletes. |
262 | 262 | */ |
263 | 263 | protected function wasDeletedSinceLastEdit() { |
264 | | - if ( $this->deletedSinceEdit ) |
265 | | - return true; |
| 264 | + if ( $this->deletedSinceEdit !== null ) { |
| 265 | + return $this->deletedSinceEdit; |
| 266 | + } |
| 267 | + |
| 268 | + $this->deletedSinceEdit = false; |
| 269 | + |
266 | 270 | if ( $this->mTitle->isDeletedQuick() ) { |
267 | 271 | $this->lastDelete = $this->getLastDelete(); |
268 | 272 | if ( $this->lastDelete ) { |
— | — | @@ -271,6 +275,7 @@ |
272 | 276 | } |
273 | 277 | } |
274 | 278 | } |
| 279 | + |
275 | 280 | return $this->deletedSinceEdit; |
276 | 281 | } |
277 | 282 | |