aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver/sqlite3.php
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2018-06-18 20:35:01 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 18:40:15 +0200
commit139eb17bb729763ab670fb239c77db02e29920f6 (patch)
treece514d6f36d0855c9be0d5a2ed35aa14258ba6ce /phpBB/phpbb/db/driver/sqlite3.php
parentb4d4336ef4043a5b3381a9e70d3bbc6bc6732d07 (diff)
downloadforums-139eb17bb729763ab670fb239c77db02e29920f6.tar
forums-139eb17bb729763ab670fb239c77db02e29920f6.tar.gz
forums-139eb17bb729763ab670fb239c77db02e29920f6.tar.bz2
forums-139eb17bb729763ab670fb239c77db02e29920f6.tar.xz
forums-139eb17bb729763ab670fb239c77db02e29920f6.zip
[ticket/12624] Add debug.load_time parameter
PHPBB3-12624
Diffstat (limited to 'phpBB/phpbb/db/driver/sqlite3.php')
-rw-r--r--phpBB/phpbb/db/driver/sqlite3.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/driver/sqlite3.php b/phpBB/phpbb/db/driver/sqlite3.php
index a1adc97ebf..43906f1b58 100644
--- a/phpBB/phpbb/db/driver/sqlite3.php
+++ b/phpBB/phpbb/db/driver/sqlite3.php
@@ -122,7 +122,7 @@ class sqlite3 extends \phpbb\db\driver\driver
{
$this->sql_report('start', $query);
}
- else if (defined('PHPBB_DISPLAY_LOAD_TIME'))
+ else if ($this->debug_load_time)
{
$this->curtime = microtime(true);
}
@@ -159,7 +159,7 @@ class sqlite3 extends \phpbb\db\driver\driver
{
$this->sql_report('stop', $query);
}
- else if (defined('PHPBB_DISPLAY_LOAD_TIME'))
+ else if ($this->debug_load_time)
{
$this->sql_time += microtime(true) - $this->curtime;
}