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