summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/core/Input.php')
-rw-r--r--system/core/Input.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index aefc3b7d8..d881e253d 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -113,11 +113,10 @@ class CI_Input {
*
* @return void
*/
- public function __construct()
+ public function __construct(CI_Security &$security)
{
- $this->_enable_csrf = (config_item('csrf_protection') === TRUE);
-
- $this->security =& load_class('Security', 'core');
+ $this->_enable_csrf = (config_item('csrf_protection') === TRUE);
+ $this->security = $security;
// CSRF Protection check
if ($this->_enable_csrf === TRUE && ! is_cli())