summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Loader.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index e634c3885..8438cc0bb 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -154,10 +154,7 @@ class CI_Loader {
$CI->load->database($db_conn, FALSE, TRUE);
}
- if ( ! class_exists('Model'))
- {
- require_once(BASEPATH.'libraries/Model'.EXT);
- }
+ load_class('Model', false);
require_once(APPPATH.'models/'.$path.$model.EXT);