summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-07-22 23:09:26 +0200
committerAndrey Andreev <narf@devilix.net>2013-07-22 23:09:26 +0200
commit9ab70a89b3ba7ee26faaae47410259e74391b593 (patch)
tree1a4ca4440d06cfe046060ef6fbe35a4348066006
parente3e2c69bb7a58b966ec550c18d1cb845af30d7d9 (diff)
Give Drivers a higher priority in the autoloader
-rw-r--r--system/core/Loader.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 535c9e4db..4d0cd09a2 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -1197,6 +1197,15 @@ class CI_Loader {
}
}
+ // Autoload drivers
+ if (isset($autoload['drivers']))
+ {
+ foreach ($autoload['drivers'] as $item)
+ {
+ $this->driver($item);
+ }
+ }
+
// Load libraries
if (isset($autoload['libraries']) && count($autoload['libraries']) > 0)
{
@@ -1214,15 +1223,6 @@ class CI_Loader {
}
}
- // Autoload drivers
- if (isset($autoload['drivers']))
- {
- foreach ($autoload['drivers'] as $item)
- {
- $this->driver($item);
- }
- }
-
// Autoload models
if (isset($autoload['model']))
{