diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2010-03-12 01:22:42 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2010-03-12 01:22:42 +0100 |
commit | 3140ad543e26a0aa4e6bc57a3a85ecdb3dfcf0d5 (patch) | |
tree | 8bf835092bec66dca293c1f3d6ea79a77e5e51ce /system/core/Common.php | |
parent | eba35088bd4fef3475ea57ae1b7010aa32c592bb (diff) |
Will check for sub-classes in core or libraries (which the original file is in) instead of always looking in libraries. Makes more sense to have them in the same folder wether in system or application.
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 47293a11b..6e2f72509 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -142,13 +142,13 @@ } // Is the request a class extension? If so we load it too - if (file_exists(APPPATH.'libraries/'.config_item('subclass_prefix').$class.EXT)) + if (file_exists(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.EXT)) { $name = config_item('subclass_prefix').$class; if (class_exists($name) === FALSE) { - require(APPPATH.'libraries/'.config_item('subclass_prefix').$class.EXT); + require(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.EXT); } } |