diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
commit | 7327499064ae165468c7440f8571c3e570b58a0b (patch) | |
tree | 4f0d0053e7d25f7064c63070edcbc3af114abed9 /system/libraries/Hooks.php | |
parent | 7539f67a23c8536f892263d8d7ab9448655d8e22 (diff) |
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/libraries/Hooks.php')
-rw-r--r-- | system/libraries/Hooks.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/system/libraries/Hooks.php b/system/libraries/Hooks.php index 49cb230c0..a41320c5e 100644 --- a/system/libraries/Hooks.php +++ b/system/libraries/Hooks.php @@ -68,7 +68,7 @@ class CI_Hooks { @include(APPPATH.'config/hooks'.EXT);
- if ( ! isset($hook) OR ! is_array($hook))
+ if (! isset($hook) OR ! is_array($hook))
{
return;
}
@@ -90,7 +90,7 @@ class CI_Hooks { */
function _call_hook($which = '')
{
- if ( ! $this->enabled OR ! isset($this->hooks[$which]))
+ if (! $this->enabled OR ! isset($this->hooks[$which]))
{
return FALSE;
}
@@ -123,7 +123,7 @@ class CI_Hooks { */
function _run_hook($data)
{
- if ( ! is_array($data))
+ if (! is_array($data))
{
return FALSE;
}
@@ -144,14 +144,14 @@ class CI_Hooks { // Set file path
// -----------------------------------
- if ( ! isset($data['filepath']) OR ! isset($data['filename']))
+ if (! isset($data['filepath']) OR ! isset($data['filename']))
{
return FALSE;
}
$filepath = APPPATH.$data['filepath'].'/'.$data['filename'];
- if ( ! file_exists($filepath))
+ if (! file_exists($filepath))
{
return FALSE;
}
@@ -196,7 +196,7 @@ class CI_Hooks { if ($class !== FALSE)
{
- if ( ! class_exists($class))
+ if (! class_exists($class))
{
require($filepath);
}
@@ -206,7 +206,7 @@ class CI_Hooks { }
else
{
- if ( ! function_exists($function))
+ if (! function_exists($function))
{
require($filepath);
}
|