r114941 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114940‎ | r114941 | r114942 >
Date:18:54, 17 April 2012
Author:reedy
Status:deferred
Tags:
Comment:
Bug 36042 - The parameter show causes an error in blocks API module
Modified paths:
  • /branches/wmf/1.19wmf1/includes/api/ApiQueryBlocks.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/includes/api/ApiQueryBlocks.php
@@ -87,6 +87,7 @@
8888 $this->addWhereFld( 'ipb_address', $this->usernames );
8989 $this->addWhereFld( 'ipb_auto', 0 );
9090 }
 91+ $db = $this->getDB();
9192 if ( isset( $params['ip'] ) ) {
9293 list( $ip, $range ) = IP::parseCIDR( $params['ip'] );
9394 if ( $ip && $range ) {
@@ -100,7 +101,6 @@
101102 }
102103 $prefix = substr( $lower, 0, 4 );
103104
104 - $db = $this->getDB();
105105 $this->addWhere( array(
106106 'ipb_range_start' . $db->buildLike( $prefix, $db->anyString() ),
107107 "ipb_range_start <= '$lower'",

Status & tagging log