summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2010-03-02 20:47:19 +0100
committerDerek Jones <derek.jones@ellislab.com>2010-03-02 20:47:19 +0100
commit8eae4d7a9a922763c64d282f5d46de240bba60d0 (patch)
tree5927eb279f762c24cf5c42eb36dad02cc625d761 /system
parent32bf18694a43a346ae9c1819f9c37f3fc64d3b1c (diff)
class rename
Diffstat (limited to 'system')
-rw-r--r--system/core/Model.php7
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