summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorShane Pearson <bubbafoley@gmail.com>2011-08-22 23:11:20 +0200
committerShane Pearson <bubbafoley@gmail.com>2011-08-22 23:11:20 +0200
commitab57a3520eafacaf2f130b3f4778a57a632fac1c (patch)
tree3ecdd8f1a5e38c3d5a79e0a6f2afe1b4d6538b4d /system/core
parentff390b9c43f33ee734b5e8abc754539799a19357 (diff)
Fix #8 - Load core classes from the application folder first.
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Common.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index db9fbeb9f..3c62403ac 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -132,9 +132,9 @@ if ( ! function_exists('load_class'))
$name = FALSE;
- // Look for the class first in the native system/libraries folder
- // thenin the local application/libraries folder
- foreach (array(BASEPATH, APPPATH) as $path)
+ // Look for the class first in the local application/libraries folder
+ // then in the native system/libraries folder
+ foreach (array(APPPATH, BASEPATH) as $path)
{
if (file_exists($path.$directory.'/'.$class.'.php'))
{