aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_acp.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-10 16:13:09 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-10 16:13:09 +0200
commit39b76a628b0c485b2ec96bbd2ea1bfea91ca4da3 (patch)
tree1a09f58169d6b0cc12a0ca9f5161a7cc629ea602 /phpBB/includes/functions_acp.php
parent456ff2559aad6f2eed089309544dd4471b798852 (diff)
downloadforums-39b76a628b0c485b2ec96bbd2ea1bfea91ca4da3.tar
forums-39b76a628b0c485b2ec96bbd2ea1bfea91ca4da3.tar.gz
forums-39b76a628b0c485b2ec96bbd2ea1bfea91ca4da3.tar.bz2
forums-39b76a628b0c485b2ec96bbd2ea1bfea91ca4da3.tar.xz
forums-39b76a628b0c485b2ec96bbd2ea1bfea91ca4da3.zip
[ticket/12687] Add a constant to display the load time without DEBUG
PHPBB3-12687
Diffstat (limited to 'phpBB/includes/functions_acp.php')
-rw-r--r--phpBB/includes/functions_acp.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index 373eb57934..4d0a20ce1f 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -147,7 +147,7 @@ function adm_page_footer($copyright_html = true)
}
// Output page creation time
- if (defined('DEBUG'))
+ if (defined('DISPLAY_LOAD_TIME'))
{
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
@@ -159,7 +159,7 @@ function adm_page_footer($copyright_html = true)
$debug_output = sprintf('Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . (($config['gzip_compress']) ? 'On' : 'Off') . (($user->load) ? ' | Load : ' . $user->load : ''), $totaltime);
- if ($auth->acl_get('a_') && defined('DEBUG'))
+ if ($auth->acl_get('a_') && defined('DISPLAY_LOAD_TIME'))
{
if (function_exists('memory_get_peak_usage'))
{
@@ -176,7 +176,7 @@ function adm_page_footer($copyright_html = true)
}
$template->assign_vars(array(
- 'DEBUG_OUTPUT' => (defined('DEBUG')) ? $debug_output : '',
+ 'DEBUG_OUTPUT' => (defined('DISPLAY_LOAD_TIME')) ? $debug_output : '',
'TRANSLATION_INFO' => (!empty($user->lang['TRANSLATION_INFO'])) ? $user->lang['TRANSLATION_INFO'] : '',
'S_COPYRIGHT_HTML' => $copyright_html,
'CREDIT_LINE' => $user->lang('POWERED_BY', '<a href="https://www.phpbb.com/">phpBB</a>&reg; Forum Software &copy; phpBB Limited'),