From: Étienne Beaulé Date: Sun, 3 Sep 2017 17:03:28 +0000 (-0300) Subject: Show protection log on every use of moveddeleted-notice X-Git-Tag: 1.31.0-rc.0~1310 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=653a18f6830d19b691893a6242060c32374cfc2c;p=lhc%2Fweb%2Fwiklou.git 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 --- 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,