X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryExtLinksUsage.php;h=9b055377ef6b42d001132b07829c67e71d29a6cc;hb=3287201b673c6e52c04e9f8771c0e71d1a617910;hp=404fc19c31ace45256e16c278ab3bde96e4bf3e7;hpb=c340c41b37b5079ba90489f6b212bb8e4642031a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 404fc19c31..9b055377ef 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -66,6 +66,9 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { $this->addWhereFld( 'page_namespace', $params['namespace'] ); } + // Normalize query to match the normalization applied for the externallinks table + $query = Parser::normalizeLinkUrl( $query ); + $whereQuery = $this->prepareUrlQuerySearchString( $query, $protocol ); if ( $whereQuery !== null ) {