@@ 584-598 (lines=15) @@ | ||
581 | } |
|
582 | } else { |
|
583 | # Image does not exist |
|
584 | if ( !$this->getId() ) { |
|
585 | # No article exists either |
|
586 | # Show deletion log to be consistent with normal articles |
|
587 | LogEventsList::showLogExtract( |
|
588 | $out, |
|
589 | [ 'delete', 'move' ], |
|
590 | $this->getTitle()->getPrefixedText(), |
|
591 | '', |
|
592 | [ 'lim' => 10, |
|
593 | 'conds' => [ "log_action != 'revision'" ], |
|
594 | 'showIfEmpty' => false, |
|
595 | 'msgKey' => [ 'moveddeleted-notice' ] |
|
596 | ] |
|
597 | ); |
|
598 | } |
|
599 | ||
600 | if ( $wgEnableUploads && $user->isAllowed( 'upload' ) ) { |
|
601 | // Only show an upload link if the user can upload |
@@ 2484-2494 (lines=11) @@ | ||
2481 | } |
|
2482 | } |
|
2483 | # Give a notice if the user is editing a deleted/moved page... |
|
2484 | if ( !$this->mTitle->exists() ) { |
|
2485 | LogEventsList::showLogExtract( $wgOut, [ 'delete', 'move' ], $this->mTitle, |
|
2486 | '', |
|
2487 | [ |
|
2488 | 'lim' => 10, |
|
2489 | 'conds' => [ "log_action != 'revision'" ], |
|
2490 | 'showIfEmpty' => false, |
|
2491 | 'msgKey' => [ 'recreate-moveddeleted-warn' ] |
|
2492 | ] |
|
2493 | ); |
|
2494 | } |
|
2495 | } |
|
2496 | ||
2497 | /** |