summaryrefslogtreecommitdiffstats
path: root/system/core/Hooks.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-11-09 12:27:11 +0100
committerAndrey Andreev <narf@devilix.net>2017-11-09 12:27:11 +0100
commitf2d92ea6cc175a43687665939b097cb6a9c79399 (patch)
tree1987bcc874a4d6ff62de7d9276ba0f53d0957085 /system/core/Hooks.php
parent0bb08b7a7ab11b4cf655110a5bd17cf7fc61accb (diff)
Refactor CI_Config, CI_Hooks interaction (close #5323)
Diffstat (limited to 'system/core/Hooks.php')
-rw-r--r--system/core/Hooks.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Hooks.php b/system/core/Hooks.php
index f2d6f21ca..d21381f5e 100644
--- a/system/core/Hooks.php
+++ b/system/core/Hooks.php
@@ -83,16 +83,16 @@ class CI_Hooks {
/**
* Class constructor
*
+ * @param CI_Config $config
* @return void
*/
- public function __construct()
+ public function __construct(CI_Config $config)
{
- $CFG =& load_class('Config', 'core');
log_message('info', 'Hooks Class Initialized');
// If hooks are not enabled in the config file
// there is nothing else to do
- if ($CFG->item('enable_hooks') === FALSE)
+ if ($config->item('enable_hooks') === FALSE)
{
return;
}