summaryrefslogtreecommitdiff
path: root/include/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-27 15:48:33 +0400
committerAndrew Dolgov <[email protected]>2013-02-27 15:48:33 +0400
commit8fe3a493d42fd5f7a781e8bb46d944358a5d029b (patch)
tree6fb14223500a04f1c4f9b1fb70c469682937df63 /include/db.php
parent0a117b86b0d5dc4b77d0f13f0fd865fe97693d59 (diff)
db: replace QUERY_LOG with _DEBUG_QUERY_LOG
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/db.php b/include/db.php
index 4e821105a..0470d648c 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");