Followup r84698, remove unused $db
authorSam Reed <reedy@users.mediawiki.org>
Fri, 25 Mar 2011 10:37:56 +0000 (10:37 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 25 Mar 2011 10:37:56 +0000 (10:37 +0000)
includes/api/ApiQueryExtLinksUsage.php
includes/api/ApiQueryExternalLinks.php

index 089d99f..1a74394 100644 (file)
@@ -60,7 +60,6 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                $query = $params['query'];
                $protocol = self::getProtocolPrefix( $params['protocol'] );
 
-               $db = $this->getDB();
                $this->addTables( array( 'page', 'externallinks' ) );   // must be in this order for 'USE INDEX'
                $this->addOption( 'USE INDEX', 'el_index' );
                $this->addWhere( 'page_id=el_from' );
index d726f66..75120f6 100644 (file)
@@ -46,7 +46,6 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                }
 
                $params = $this->extractRequestParams();
-               $db = $this->getDB();
 
                $query = $params['query'];
                $protocol = ApiQueryExtLinksUsage::getProtocolPrefix( $params['protocol'] );