diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-11-05 21:36:35 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-11-05 21:36:35 +0000 |
commit | fb53abe3bdb0746f52934b84e1627c6ff99c5339 (patch) | |
tree | 744de2591c0b7e171d48af0d9668fbb3db3b3355 /include/functions.inc.php | |
parent | d2884e69ce33718e83f7da93adae0ba8a86d68cc (diff) |
- DEFAULT_LANGUAGE constant moved to $conf['default_language']
- DEBUG constant divided into $conf['show_queries'] and $conf['show_gt']
(display generation time at the bottom of each page)
git-svn-id: http://piwigo.org/svn/trunk@592 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index af2c6d6b3..99fb01cbb 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -446,10 +446,12 @@ function pwg_write_debug() function pwg_query($query) { + global $conf; + $start = get_moment(); $result = mysql_query($query); - if (DEBUG) + if ($conf['show_queries']) { global $count_queries,$queries_time; |