r107765 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107764‎ | r107765 | r107766 >
Date:08:33, 1 January 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
Small cleanup
Modified paths:
  • /trunk/extensions/ReplaceText/SpecialReplaceText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/SpecialReplaceText.php
@@ -71,11 +71,11 @@
7272
7373 $this->target = $wgRequest->getText( 'target' );
7474 $this->replacement = $wgRequest->getText( 'replacement' );
75 - $this->use_regex = ( $wgRequest->getVal( 'use_regex' ) == 1 );
 75+ $this->use_regex = $wgRequest->getBool( 'use_regex' );
7676 $this->category = $wgRequest->getText( 'category' );
7777 $this->prefix = $wgRequest->getText( 'prefix' );
78 - $this->edit_pages = ( $wgRequest->getVal( 'edit_pages' ) == 1 );
79 - $this->move_pages = ( $wgRequest->getVal( 'move_pages' ) == 1 );
 78+ $this->edit_pages = $wgRequest->getBool( 'edit_pages' );
 79+ $this->move_pages = $wgRequest->getBool( 'move_pages' );
8080 $this->selected_namespaces = self::getSelectedNamespaces();
8181
8282 if ( $wgRequest->getCheck( 'continue' ) ) {

Status & tagging log