https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114941
Revision: 114941
Author: reedy
Date: 2012-04-17 18:54:52 +0000 (Tue, 17 Apr 2012)
Log Message:
-----------
Bug 36042 - The parameter show causes an error in blocks API module
Modified Paths:
--------------
branches/wmf/1.19wmf1/includes/api/ApiQueryBlocks.php
Modified: branches/wmf/1.19wmf1/includes/api/ApiQueryBlocks.php
===================================================================
--- branches/wmf/1.19wmf1/includes/api/ApiQueryBlocks.php 2012-04-17
18:39:36 UTC (rev 114940)
+++ branches/wmf/1.19wmf1/includes/api/ApiQueryBlocks.php 2012-04-17
18:54:52 UTC (rev 114941)
@@ -87,6 +87,7 @@
$this->addWhereFld( 'ipb_address', $this->usernames );
$this->addWhereFld( 'ipb_auto', 0 );
}
+ $db = $this->getDB();
if ( isset( $params['ip'] ) ) {
list( $ip, $range ) = IP::parseCIDR( $params['ip'] );
if ( $ip && $range ) {
@@ -100,7 +101,6 @@
}
$prefix = substr( $lower, 0, 4 );
- $db = $this->getDB();
$this->addWhere( array(
'ipb_range_start' . $db->buildLike( $prefix,
$db->anyString() ),
"ipb_range_start <= '$lower'",
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs