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
Merge "BaseTemplate: Remove code for unused 'ispermalink' toolbox item"
[lhc/web/wiklou.git]
/
includes
/
LinkFilter.php
diff --git
a/includes/LinkFilter.php
b/includes/LinkFilter.php
index
7b3d72b
..
790e2be
100644
(file)
--- a/
includes/LinkFilter.php
+++ b/
includes/LinkFilter.php
@@
-19,6
+19,7
@@
*
* @file
*/
*
* @file
*/
+use Wikimedia\Rdbms\LikeMatch;
/**
* Some functions to help implement an external link filter for spam control.
/**
* Some functions to help implement an external link filter for spam control.
@@
-49,7
+50,7
@@
class LinkFilter {
$text = $content->getNativeData();
$text = $content->getNativeData();
- $regex =
LinkFilter
::makeRegex( $filterEntry );
+ $regex =
self
::makeRegex( $filterEntry );
return preg_match( $regex, $text );
}
return preg_match( $regex, $text );
}