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
Create IResultWrapper interface for type-hints
[lhc/web/wiklou.git]
/
includes
/
LinkFilter.php
diff --git
a/includes/LinkFilter.php
b/includes/LinkFilter.php
index
802bfbe
..
2f50558
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.
@@
-89,10
+90,10
@@
class LinkFilter {
*
* @param string $filterEntry Domainparts
* @param string $protocol Protocol (default http://)
*
* @param string $filterEntry Domainparts
* @param string $protocol Protocol (default http://)
- * @return array Array to be passed to Database::buildLike() or false on error
+ * @return array
|bool
Array to be passed to Database::buildLike() or false on error
*/
public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) {
*/
public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) {
- $db = wfGetDB( DB_
SLAVE
);
+ $db = wfGetDB( DB_
REPLICA
);
$target = $protocol . $filterEntry;
$bits = wfParseUrl( $target );
$target = $protocol . $filterEntry;
$bits = wfParseUrl( $target );