mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
Merge pull request #5266 from senky/ticket/12624
[ticket/12624] Add debug.load_time parameter * github.com:/phpbb/phpbb: [ticket/12624] Add debug.load_time parameter
This commit is contained in:
@@ -177,7 +177,7 @@ class postgres 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);
|
||||
}
|
||||
@@ -197,7 +197,7 @@ class postgres 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user