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