X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FLinkFilter.php;h=e4a5f962d16fedfaff8ffea2327785da8eb94055;hb=db3a8beb778ba841cf6bf795312bdba796c58ee5;hp=c46df94d3c738d2640b796abf0c7fa63b81dd4b6;hpb=4cc031607c9b8e17265e51372b94399399254966;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index c46df94d3c..e4a5f962d1 100644 --- 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 ); + $like = []; $target = $protocol . $filterEntry; $bits = wfParseUrl( $target ); @@ -338,7 +339,6 @@ class LinkFilter { } } - $like = []; $like[] = $bits['scheme'] . $bits['delimiter'] . $bits['host']; if ( $subdomains ) {