diff options
author | Hakan Sandell <sandell.hakan@gmail.com> | 2012-09-08 15:04:01 +0200 |
---|---|---|
committer | Hakan Sandell <sandell.hakan@gmail.com> | 2012-09-08 15:04:01 +0200 |
commit | 392c9b52ffb053f893462033bbc4b42ea2b81eba (patch) | |
tree | 60b2a22c6dc83ae027d4e0e96a9114e8dfbead42 /lib/plugins/config/admin.php | |
parent | 5373d8473e7ebb71c7d2b85a36a511358343d1ac (diff) | |
download | rpg-392c9b52ffb053f893462033bbc4b42ea2b81eba.tar.gz rpg-392c9b52ffb053f893462033bbc4b42ea2b81eba.tar.bz2 |
Replacing $_REQUEST variables with $INPUT wrapper, config/admin.php
Diffstat (limited to 'lib/plugins/config/admin.php')
-rw-r--r-- | lib/plugins/config/admin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugins/config/admin.php b/lib/plugins/config/admin.php index bc2d88322..0d314d2e6 100644 --- a/lib/plugins/config/admin.php +++ b/lib/plugins/config/admin.php @@ -38,10 +38,10 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin { * handle user request */ function handle() { - global $ID; + global $ID, $INPUT; if (!$this->_restore_session()) return $this->_close_session(); - if (!isset($_REQUEST['save']) || ($_REQUEST['save'] != 1)) return $this->_close_session(); + if ($INPUT->int('save') != 1) return $this->_close_session(); if (!checkSecurityToken()) return $this->_close_session(); if (is_null($this->_config)) { $this->_config = new configuration($this->_file); } @@ -49,7 +49,7 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin { // don't go any further if the configuration is locked if ($this->_config->_locked) return $this->_close_session(); - $this->_input = $_REQUEST['config']; + $this->_input = $INPUT->arr('config'); while (list($key) = each($this->_config->setting)) { $input = isset($this->_input[$key]) ? $this->_input[$key] : NULL; |