From 64dea25df5a38419c0d2029c6c6e3850a35835e2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 18 Apr 2007 19:28:15 +0000 Subject: [PATCH] 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. --- includes/SpecialProtectedpages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) ); -- 2.20.1