]> git.wh0rd.org - tt-rss.git/commitdiff
db: replace QUERY_LOG with _DEBUG_QUERY_LOG
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 11:48:33 +0000 (15:48 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 11:48:33 +0000 (15:48 +0400)
include/db.php

index 4e821105aff4715d6637665966983505942aa85f..0470d648ca888d80141971a32c0bbadd797039d0 100644 (file)
@@ -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");