summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorShane Pearson <bubbafoley@gmail.com>2011-08-22 23:11:20 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-11-02 10:52:21 +0100
commit8d0a31314fbf8040cce5d7601a12fffe208ae884 (patch)
tree0726201bad0ae88858789c5a0cc0b36266ca9570 /system/core/Common.php
parentec58ace846cd89587e8e3dbd404192bcbf96e1c2 (diff)
Fix #8 - Load core classes from the application folder first.
Diffstat (limited to 'system/core/Common.php')
-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 3d6931bc0..d79375475 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'))
{