From: Alexandre Emsenhuber Date: Thu, 6 Oct 2011 08:47:59 +0000 (+0000) Subject: And I forgot to commit this in r99038: make "unhide" parameter work in Special:Compar... X-Git-Tag: 1.31.0-rc.0~27244 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=b49ab4a2407672fa3730c15cd4421fde2f1b49e9;p=lhc%2Fweb%2Fwiklou.git And I forgot to commit this in r99038: make "unhide" parameter work in Special:ComparePages, now that the links points to the correct place --- 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 ); } }