aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/index.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-09-22 21:58:20 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-09-25 20:32:15 +0200
commitfccd7f0ab5ab559dc89be6af9e582a986af8bb13 (patch)
tree65b2c96dc13203a75f104d3ee2b79b0756bc4631 /phpBB/adm/index.php
parent15883dfac22c8a5660c0400c565ba980eaf6f618 (diff)
downloadforums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.gz
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.bz2
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.xz
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.zip
[feature/request-class] Convert any direct access to $_* to use $request
PHPBB3-9716
Diffstat (limited to 'phpBB/adm/index.php')
-rw-r--r--phpBB/adm/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php
index 92bcf90039..2e07e58d0f 100644
--- a/phpBB/adm/index.php
+++ b/phpBB/adm/index.php
@@ -163,6 +163,7 @@ function adm_page_footer($copyright_html = true)
{
global $db, $config, $template, $user, $auth, $cache;
global $starttime, $phpbb_root_path, $phpbb_admin_path, $phpEx;
+ global $request;
// Output page creation time
if (defined('DEBUG'))
@@ -170,7 +171,7 @@ function adm_page_footer($copyright_html = true)
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
- if (!empty($_REQUEST['explain']) && $auth->acl_get('a_') && defined('DEBUG_EXTRA') && method_exists($db, 'sql_report'))
+ if ($request->variable('explain', false) && $auth->acl_get('a_') && defined('DEBUG_EXTRA') && method_exists($db, 'sql_report'))
{
$db->sql_report('display');
}