X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinkFilter.php;h=7b3d72b336d3b3a093f7075fff64c4e8191a99bc;hb=44ac0de8d1d6c4dfdeeb9f52f18f164a18176b46;hp=802bfbe948a47a57113b9acdf0c3a9f57c7e9033;hpb=c86d36805ed741ef3ebd0c35f6cd12271c454101;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 );