Show protection log on every use of moveddeleted-notice
authorÉtienne Beaulé <beauleetienne0@gmail.com>
Sun, 3 Sep 2017 17:03:28 +0000 (14:03 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Sun, 3 Dec 2017 20:04:22 +0000 (20:04 +0000)
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
includes/page/ImagePage.php

index a9e3d6a..0e964bf 100644 (file)
@@ -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,
index 76ff41b..67f9e09 100644 (file)
@@ -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,