X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinkFilter.php;h=7b3d72b336d3b3a093f7075fff64c4e8191a99bc;hb=056f1f532d5e60df920bf4c2d69f80c4fc593b65;hp=802bfbe948a47a57113b9acdf0c3a9f57c7e9033;hpb=376879ee06871beb31ca540bbcc87843aa2fb744;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index 802bfbe948..7b3d72b336 100644 --- a/includes/LinkFilter.php +++ b/includes/LinkFilter.php @@ -89,10 +89,10 @@ class LinkFilter { * * @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://' ) { - $db = wfGetDB( DB_SLAVE ); + $db = wfGetDB( DB_REPLICA ); $target = $protocol . $filterEntry; $bits = wfParseUrl( $target );