From ed2273fdc5ab00b88ae4a80a5dc3f8f2409b82af Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 27 Mar 2015 10:47:58 -0700 Subject: [PATCH] Avoid using DB_MASTER in makeLikeArray Bug: T92357 Change-Id: Ifd134f8572a247d6d977fdb36fb2814bc51e7fbe --- includes/LinkFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index 340ae8f398..99aaaa093a 100644 --- a/includes/LinkFilter.php +++ b/includes/LinkFilter.php @@ -92,7 +92,7 @@ class LinkFilter { * @return array Array to be passed to DatabaseBase::buildLike() or false on error */ public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) { - $db = wfGetDB( DB_MASTER ); + $db = wfGetDB( DB_SLAVE ); $target = $protocol . $filterEntry; $bits = wfParseUrl( $target ); -- 2.20.1