From 653a18f6830d19b691893a6242060c32374cfc2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=89tienne=20Beaul=C3=A9?= Date: Sun, 3 Sep 2017 14:03:28 -0300 Subject: [PATCH] Show protection log on every use of moveddeleted-notice As a follow-up to T171338, the other uses of the message were ignored. This change adds the protection log to these uses; that is, history and image pages. Bug: T174889 Change-Id: Ib9f22d6e06c372c4a32e77a08c846d768853bc21 --- includes/actions/HistoryAction.php | 2 +- includes/page/ImagePage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index a9e3d6accd..0e964bf5cc 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -154,7 +154,7 @@ class HistoryAction extends FormlessAction { # show deletion/move log if there is an entry LogEventsList::showLogExtract( $out, - [ 'delete', 'move' ], + [ 'delete', 'move', 'protect' ], $this->getTitle(), '', [ 'lim' => 10, diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 76ff41bc36..67f9e09fbb 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -589,7 +589,7 @@ EOT # Show deletion log to be consistent with normal articles LogEventsList::showLogExtract( $out, - [ 'delete', 'move' ], + [ 'delete', 'move', 'protect' ], $this->getTitle()->getPrefixedText(), '', [ 'lim' => 10, -- 2.20.1