From: Andrew Dolgov Date: Wed, 27 Feb 2013 11:48:33 +0000 (+0400) Subject: db: replace QUERY_LOG with _DEBUG_QUERY_LOG X-Git-Tag: 1.7.1~24 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8fe3a493d42fd5f7a781e8bb46d944358a5d029b;p=tt-rss.git db: replace QUERY_LOG with _DEBUG_QUERY_LOG --- diff --git a/include/db.php b/include/db.php index 4e821105..0470d648 100644 --- a/include/db.php +++ b/include/db.php @@ -52,7 +52,7 @@ function db_escape_string($s, $strip_tags = true) { } function db_query($link, $query, $die_on_error = true) { - if ($_REQUEST["qlog"] || defined('QUERY_LOG')) { + if ($_REQUEST["qlog"] || defined('_DEBUG_QUERY_LOG')) { $query = trim($query); error_log($_SESSION["uid"] . ":" . $_REQUEST["op"] . "/" . $_REQUEST["method"] . " $query\n", 3, "/tmp/ttrss-query.log");