summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2010-03-12 01:22:42 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2010-03-12 01:22:42 +0100
commit3140ad543e26a0aa4e6bc57a3a85ecdb3dfcf0d5 (patch)
tree8bf835092bec66dca293c1f3d6ea79a77e5e51ce /system/core/Common.php
parenteba35088bd4fef3475ea57ae1b7010aa32c592bb (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.php4
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);
}
}