summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-02-15 19:20:05 +0100
committerDerek Allard <derek.allard@ellislab.com>2007-02-15 19:20:05 +0100
commita8b10bed6b1064548b8af605e5b16113b457de02 (patch)
tree261755110d8975c9ff793246ba20c4fd00ff0f78 /system
parentc4ac15f47a73a2db99406d901d53803b87f255bb (diff)
allow for extending models
Diffstat (limited to 'system')
-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);