From: Brion Vibber Date: Wed, 18 Apr 2007 19:28:15 +0000 (+0000) Subject: Revert r21250 X-Git-Tag: 1.31.0-rc.0~53369 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=64dea25df5a38419c0d2029c6c6e3850a35835e2;p=lhc%2Fweb%2Fwiklou.git Revert r21250 WebRequest::getText() is for user-supplied freeform text input for which input transformations may be required (eg Esperanto x-coding). These two variables are not freeform text inputs, but predefined internal text keys selected by a drop-down menu. Use of getVal() is correct. --- diff --git a/includes/SpecialProtectedpages.php b/includes/SpecialProtectedpages.php index 4125f41b5b..b214822da2 100644 --- a/includes/SpecialProtectedpages.php +++ b/includes/SpecialProtectedpages.php @@ -22,12 +22,12 @@ class ProtectedPagesForm { Title::purgeExpiredRestrictions(); } - $type = $wgRequest->getText( 'type' ); - $level = $wgRequest->getText( 'level' ); + $type = $wgRequest->getVal( 'type' ); + $level = $wgRequest->getVal( 'level' ); $minsize = $wgRequest->getIntOrNull( 'minsize' ); $NS = $wgRequest->getIntOrNull( 'namespace' ); - $pager = new ProtectedPagesPager( $this, array(), $type, $level, $NS, $minsize ); + $pager = new ProtectedPagesPager( $this, array(), $type, $level, $NS, $minsize ); $wgOut->addHTML( $this->showOptions( $NS, $type, $level, $minsize ) );