From b49ab4a2407672fa3730c15cd4421fde2f1b49e9 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 6 Oct 2011 08:47:59 +0000 Subject: [PATCH] And I forgot to commit this in r99038: make "unhide" parameter work in Special:ComparePages, now that the links points to the correct place --- includes/specials/SpecialComparePages.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialComparePages.php b/includes/specials/SpecialComparePages.php index 81fd92f71b..0fa1391522 100644 --- a/includes/specials/SpecialComparePages.php +++ b/includes/specials/SpecialComparePages.php @@ -91,6 +91,10 @@ class SpecialComparePages extends SpecialPage { 'type' => 'hidden', 'name' => 'diffonly', ), + 'Unhide' => array( + 'type' => 'hidden', + 'name' => 'unhide', + ), ), $this->getContext(), 'compare' ); $form->setSubmitText( wfMsg( 'compare-submit' ) ); $form->suppressReset(); @@ -111,8 +115,9 @@ class SpecialComparePages extends SpecialPage { $rev1, $rev2, null, // rcid - ( $data["Action"] == 'purge' ), - false ); + ( $data['Action'] == 'purge' ), + ( $data['Unhide'] == '1' ) + ); $de->showDiffPage( true ); } } -- 2.20.1