Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -468,6 +468,22 @@ |
469 | 469 | } |
470 | 470 | } else { |
471 | 471 | # Image does not exist |
| 472 | + if ( !$this->getID() ) { |
| 473 | + # No article exists either |
| 474 | + # Show deletion log to be consistent with normal articles |
| 475 | + LogEventsList::showLogExtract( |
| 476 | + $wgOut, |
| 477 | + array( 'delete', 'move' ), |
| 478 | + $this->getTitle()->getPrefixedText(), |
| 479 | + '', |
| 480 | + array( 'lim' => 10, |
| 481 | + 'conds' => array( "log_action != 'revision'" ), |
| 482 | + 'showIfEmpty' => false, |
| 483 | + 'msgKey' => array( 'moveddeleted-notice' ) |
| 484 | + ) |
| 485 | + ); |
| 486 | + } |
| 487 | + |
472 | 488 | if ( $wgEnableUploads && $wgUser->isAllowed( 'upload' ) ) { |
473 | 489 | // Only show an upload link if the user can upload |
474 | 490 | $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); |
Index: trunk/phase3/RELEASE-NOTES-1.20 |
— | — | @@ -37,6 +37,7 @@ |
38 | 38 | * (bug 34702) Localised parentheses are now used in more special pages. |
39 | 39 | * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR. |
40 | 40 | * (bug 34762) Calling close() on a DatabaseBase object now clears the connection. |
| 41 | +* (bug 34863) Show deletion log extract on non-existent file pages if applicable. |
41 | 42 | |
42 | 43 | === API changes in 1.20 === |
43 | 44 | * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API. |