diff options
author | Derek Jones <derek.jones@ellislab.com> | 2010-03-02 20:47:19 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2010-03-02 20:47:19 +0100 |
commit | 8eae4d7a9a922763c64d282f5d46de240bba60d0 (patch) | |
tree | 5927eb279f762c24cf5c42eb36dad02cc625d761 /system/core/Model.php | |
parent | 32bf18694a43a346ae9c1819f9c37f3fc64d3b1c (diff) |
class rename
Diffstat (limited to 'system/core/Model.php')
-rw-r--r-- | system/core/Model.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/system/core/Model.php b/system/core/Model.php index 541f966b6..16c4e7dd8 100644 --- a/system/core/Model.php +++ b/system/core/Model.php @@ -24,7 +24,7 @@ * @author ExpressionEngine Dev Team * @link http://codeigniter.com/user_guide/libraries/config.html */ -class Model { +class CI_Model { var $_parent_name = ''; @@ -33,7 +33,7 @@ class Model { * * @access public */ - function Model() + function CI_Model() { // If the magic __get() or __set() methods are used in a Model references can't be used. $this->_assign_libraries( (method_exists($this, '__get') OR method_exists($this, '__set')) ? FALSE : TRUE ); @@ -65,7 +65,8 @@ class Model { // problems so we'll conditionally use them if ($use_reference == TRUE) { - $this->$key = NULL; // Needed to prevent reference errors with some configurations + // Needed to prevent reference errors with some configurations + $this->$key = ''; $this->$key =& $CI->$key; } else |