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
externalstore: deprecate getLBInfo() dependency in ExternalStoreDB
[lhc/web/wiklou.git]
/
includes
/
LinkFilter.php
diff --git
a/includes/LinkFilter.php
b/includes/LinkFilter.php
index
c46df94
..
e4a5f96
100644
(file)
--- a/
includes/LinkFilter.php
+++ b/
includes/LinkFilter.php
@@
-311,6
+311,7
@@
class LinkFilter {
*/
public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) {
$db = wfGetDB( DB_REPLICA );
*/
public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) {
$db = wfGetDB( DB_REPLICA );
+ $like = [];
$target = $protocol . $filterEntry;
$bits = wfParseUrl( $target );
$target = $protocol . $filterEntry;
$bits = wfParseUrl( $target );
@@
-338,7
+339,6
@@
class LinkFilter {
}
}
}
}
- $like = [];
$like[] = $bits['scheme'] . $bits['delimiter'] . $bits['host'];
if ( $subdomains ) {
$like[] = $bits['scheme'] . $bits['delimiter'] . $bits['host'];
if ( $subdomains ) {