aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_search.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2008-11-24 00:20:33 +0000
committerNils Adermann <naderman@naderman.de>2008-11-24 00:20:33 +0000
commit07e9b83a3de0264916a058b9cf180b91b297604f (patch)
tree386aed44943159d6634f74ee756c4073d5dbab19 /phpBB/includes/acp/acp_search.php
parent8427ae3fd4bd0055931579d18cb9d43d69f72a90 (diff)
downloadforums-07e9b83a3de0264916a058b9cf180b91b297604f.tar
forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.gz
forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.bz2
forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.xz
forums-07e9b83a3de0264916a058b9cf180b91b297604f.zip
- updated all code to use the request class instead of any direct access to
super globals - disabled super globals in common.php. See commit r9101 for more information - cleaned up/simplified a few lines along the way. git-svn-id: file:///svn/phpbb/trunk@9102 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_search.php')
-rw-r--r--phpBB/includes/acp/acp_search.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_search.php b/phpBB/includes/acp/acp_search.php
index a593afc648..6f38a95bff 100644
--- a/phpBB/includes/acp/acp_search.php
+++ b/phpBB/includes/acp/acp_search.php
@@ -52,7 +52,7 @@ class acp_search
{
global $db, $user, $auth, $template, $cache, $config;
- $submit = (isset($_POST['submit'])) ? true : false;
+ $submit = request::is_set_post('submit');
$search_types = $this->get_search_types();
@@ -99,7 +99,7 @@ class acp_search
unset($search);
unset($error);
- $cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => ''), true) : array();
+ $cfg_array = request_var('config', array('' => ''), true);
$updated = request_var('updated', false);
foreach ($settings as $config_name => $var_type)
@@ -228,9 +228,9 @@ class acp_search
{
global $db, $user, $auth, $template, $cache, $config;
- if (isset($_REQUEST['action']) && is_array($_REQUEST['action']))
+ $action = request_var('action', array('' => false));
+ if (sizeof($action))
{
- $action = request_var('action', array('' => false));
$action = key($action);
}
else
@@ -239,7 +239,7 @@ class acp_search
}
$this->state = explode(',', $config['search_indexing_state']);
- if (isset($_POST['cancel']))
+ if (request::is_set_post('cancel'))
{
$action = '';
$this->state = array();