dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add mw-body-content to indicators
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryExtLinksUsage.php
diff --git
a/includes/api/ApiQueryExtLinksUsage.php
b/includes/api/ApiQueryExtLinksUsage.php
index
404fc19
..
9b05537
100644
(file)
--- a/
includes/api/ApiQueryExtLinksUsage.php
+++ b/
includes/api/ApiQueryExtLinksUsage.php
@@
-66,6
+66,9
@@
class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
$this->addWhereFld( 'page_namespace', $params['namespace'] );
}
$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 ) {
$whereQuery = $this->prepareUrlQuerySearchString( $query, $protocol );
if ( $whereQuery !== null ) {