From 6d5cca465deafe10666c879a63bc3a66e8d6486c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 24 Mar 2011 20:02:41 +0000 Subject: [PATCH] Remove 2 erroneous $db parameters from External links modules --- includes/api/ApiQueryExtLinksUsage.php | 2 +- includes/api/ApiQueryExternalLinks.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1