From: Sam Reed Date: Thu, 24 Mar 2011 20:02:41 +0000 (+0000) Subject: Remove 2 erroneous $db parameters from External links modules X-Git-Tag: 1.31.0-rc.0~31210 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=6d5cca465deafe10666c879a63bc3a66e8d6486c;p=lhc%2Fweb%2Fwiklou.git Remove 2 erroneous $db parameters from External links modules --- diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 050f4ef342..089d99fc82 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -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 ); diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index c4f8790d95..de5bb3ce8b 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -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 );