r22870 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22869‎ | r22870 | r22871 >
Date:18:04, 9 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Remove useless protected variables
Modified paths:
  • /branches/robchurch/pr_timestamp/includes/SpecialProtectedpages.php (modified) (history)

Diff [purge]

Index: branches/robchurch/pr_timestamp/includes/SpecialProtectedpages.php
@@ -7,9 +7,6 @@
88 */
99 class SpecialProtectedPages extends SpecialPage {
1010
11 - protected $IdLevel = 'level';
12 - protected $IdType = 'type';
13 -
1411 /**
1512 * Constructor
1613 */
@@ -39,8 +36,8 @@
4037 Title::purgeExpiredRestrictions();
4138 }
4239
43 - $type = $wgRequest->getVal( $this->IdType );
44 - $level = $wgRequest->getVal( $this->IdLevel );
 40+ $type = $wgRequest->getVal( 'type' );
 41+ $level = $wgRequest->getVal( 'level' );
4542 $sizetype = $wgRequest->getVal( 'sizetype' );
4643 $size = $wgRequest->getIntOrNull( 'size' );
4744 $NS = $wgRequest->getIntOrNull( 'namespace' );

Status & tagging log