summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorDaniel <contact@danielupshaw.com>2013-04-14 22:41:57 +0200
committerDaniel <contact@danielupshaw.com>2013-04-14 22:41:57 +0200
commit1d3752c109547919f15b321beb2d5375fc2db150 (patch)
treed8fc48865efc3824c3b6e74856dbc0409efae361 /system/core/Loader.php
parent5eb1cbfa673bfa4b8a66ab8a56389a279c1f975b (diff)
Fix for extending classes in a subdirectory (e.g. drivers)
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index d4e63231c..8f76f9a6b 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -955,7 +955,7 @@ class CI_Loader {
// Is this a class extension request?
if (file_exists($subclass))
{
- $baseclass = BASEPATH.'libraries/'.$class.'.php';
+ $baseclass = BASEPATH.'libraries/'.$subdir.$class.'.php';
if ( ! file_exists($baseclass))
{