diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2018-06-18 20:35:01 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 18:40:15 +0200 |
commit | 139eb17bb729763ab670fb239c77db02e29920f6 (patch) | |
tree | ce514d6f36d0855c9be0d5a2ed35aa14258ba6ce /phpBB/phpbb/db/driver/mssqlnative.php | |
parent | b4d4336ef4043a5b3381a9e70d3bbc6bc6732d07 (diff) | |
download | forums-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/mssqlnative.php')
-rw-r--r-- | phpBB/phpbb/db/driver/mssqlnative.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/driver/mssqlnative.php b/phpBB/phpbb/db/driver/mssqlnative.php index ff37eaf1c2..30ef9d9bc4 100644 --- a/phpBB/phpbb/db/driver/mssqlnative.php +++ b/phpBB/phpbb/db/driver/mssqlnative.php @@ -127,7 +127,7 @@ class mssqlnative extends \phpbb\db\driver\mssql_base { $this->sql_report('start', $query); } - else if (defined('PHPBB_DISPLAY_LOAD_TIME')) + else if ($this->debug_load_time) { $this->curtime = microtime(true); } @@ -149,7 +149,7 @@ class mssqlnative extends \phpbb\db\driver\mssql_base { $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; } |