From 1f2d67b5e862e2018daccf1a651ba7d41597c077 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 12 Jul 2015 22:05:37 +0200 Subject: [PATCH] Pass function name in SearchMySQL::minSearchLength This allow to see the correct function name in the debug logs Change-Id: Ic18120ead47d4647943473d4aa1c5c795669d2c0 --- includes/search/SearchMySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/search/SearchMySQL.php b/includes/search/SearchMySQL.php index fa2423b7e6..246f115546 100644 --- a/includes/search/SearchMySQL.php +++ b/includes/search/SearchMySQL.php @@ -439,7 +439,7 @@ class SearchMySQL extends SearchDatabase { $sql = "SHOW GLOBAL VARIABLES LIKE 'ft\\_min\\_word\\_len'"; $dbr = wfGetDB( DB_SLAVE ); - $result = $dbr->query( $sql ); + $result = $dbr->query( $sql, __METHOD__ ); $row = $result->fetchObject(); $result->free(); -- 2.20.1