summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-08-14 17:56:47 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-08-14 17:56:47 +0200
commit02d45b56c57f6cf9f8c0fabe7f8b7ed761bd5a9b (patch)
tree71f9f808fbdc9e9d952c237100a31010742443c3 /system/libraries
parentb62cf1ed8e40fa7f5e8f02dea57aa2f34d1beea7 (diff)
Driver children can be located in any package path. Thanks Namaless.
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Driver.php b/system/libraries/Driver.php
index c32f2c1eb..9881c1eec 100644
--- a/system/libraries/Driver.php
+++ b/system/libraries/Driver.php
@@ -54,7 +54,7 @@ class CI_Driver_Library {
if ( ! class_exists($child_class))
{
// check application path first
- foreach (array(APPPATH, BASEPATH) as $path)
+ foreach (get_instance()->load->get_package_paths(TRUE) as $path)
{
// loves me some nesting!
foreach (array(ucfirst($driver_name), $driver_name) as $class)
@@ -226,4 +226,4 @@ class CI_Driver {
// END CI_Driver CLASS
/* End of file Driver.php */
-/* Location: ./system/libraries/Driver.php */
+/* Location: ./system/libraries/Driver.php */ \ No newline at end of file