diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-25 14:07:35 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-25 14:07:35 +0100 |
commit | 89ecc8a1c69bed3451d43d3f0a367f4e498d1b80 (patch) | |
tree | 91abfa8346b81a3b98ae567f5c7c608b1dc3394d /system/core | |
parent | ade05b40714070bcda7ab32187068e95b98c8cf8 (diff) | |
parent | 6262d053db57957c4445ef7fce76070854c3e30d (diff) |
Merge pull request #2029 from dchill42/driver_ext
Added driver extension support
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Loader.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 1e6eafe8a..651507470 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -669,6 +669,12 @@ class CI_Loader { return FALSE; } + if ( ! class_exists('CI_Driver_Library')) + { + // We aren't instantiating an object here, just making the base class available + require BASEPATH.'libraries/Driver.php'; + } + // We can save the loader some time since Drivers will *always* be in a subfolder, // and typically identically named to the library if ( ! strpos($library, '/')) @@ -949,13 +955,6 @@ class CI_Loader { // Get the filename from the path $class = substr($class, $last_slash); - - // Check for match and driver base class - if (strtolower(trim($subdir, '/')) == strtolower($class) && ! class_exists('CI_Driver_Library')) - { - // We aren't instantiating an object here, just making the base class available - require BASEPATH.'libraries/Driver.php'; - } } // We'll test for both lowercase and capitalized versions of the file name |