commit | db529ca1e13e9f9e1c73be20c3b92a7adc3c6aa2 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Mon Jan 28 11:00:02 2013 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Mon Jan 28 11:00:02 2013 +0200 |
tree | d4f4ecff21af8f6e09eb764546b8bdb02646148a | |
parent | 1b74e70c0cfd3aedcfa427b655e2ad3868bff531 [diff] [blame] |
Remove unnecessary defined('ENVIRONMENT') checks As suggested in issue #2134 & PR #2149
diff --git a/system/core/Hooks.php b/system/core/Hooks.php index 2cb416c..59759e0 100644 --- a/system/core/Hooks.php +++ b/system/core/Hooks.php
@@ -81,7 +81,7 @@ } // Grab the "hooks" definition file. - if (defined('ENVIRONMENT') && is_file(APPPATH.'config/'.ENVIRONMENT.'/hooks.php')) + if (is_file(APPPATH.'config/'.ENVIRONMENT.'/hooks.php')) { include(APPPATH.'config/'.ENVIRONMENT.'/hooks.php'); }