From: umherirrender Date: Sun, 12 Jul 2015 20:05:37 +0000 (+0200) Subject: Pass function name in SearchMySQL::minSearchLength X-Git-Tag: 1.31.0-rc.0~10800^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=1f2d67b5e862e2018daccf1a651ba7d41597c077;p=lhc%2Fweb%2Fwiklou.git Pass function name in SearchMySQL::minSearchLength This allow to see the correct function name in the debug logs Change-Id: Ic18120ead47d4647943473d4aa1c5c795669d2c0 --- 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();