Remove 2 erroneous $db parameters from External links modules
authorSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 20:02:41 +0000 (20:02 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 20:02:41 +0000 (20:02 +0000)
includes/api/ApiQueryExtLinksUsage.php
includes/api/ApiQueryExternalLinks.php

index 050f4ef..089d99f 100644 (file)
@@ -73,7 +73,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                        $this->addWhereFld( 'page_namespace', $params['namespace'] );
                }
 
-               $whereQuery = $this->prepareUrlQuerySearchString( $db, $query, $protocol );
+               $whereQuery = $this->prepareUrlQuerySearchString( $query, $protocol );
 
                if ( $whereQuery !== null ) {
                        $this->addWhere( $whereQuery );
index c4f8790..de5bb3c 100644 (file)
@@ -59,7 +59,7 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                $this->addTables( 'externallinks' );
                $this->addWhereFld( 'el_from', array_keys( $this->getPageSet()->getGoodTitles() ) );
 
-               $whereQuery = $this->prepareUrlQuerySearchString( $db, $query, $protocol );
+               $whereQuery = $this->prepareUrlQuerySearchString( $query, $protocol );
 
                if ( $whereQuery !== null ) {
                        $this->addWhere( $whereQuery );