summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorPascal Kriete <pascal.kriete@ellislab.com>2010-11-10 22:01:24 +0100
committerPascal Kriete <pascal.kriete@ellislab.com>2010-11-10 22:01:24 +0100
commitfa67d54da36ae7a210e995d80a5273f0bc0d7ea0 (patch)
treee36f9a6124ff38b321de830877ae96459d3aee52 /system/core/Common.php
parent146278b4cc40fd6468c0c800e00ac375cf282207 (diff)
parent585600207a79c1d9a7b0af5883bf384629b753a3 (diff)
Automated merge with http://hg.ellislab.com/CodeIgniterNoPhp4/
Diffstat (limited to 'system/core/Common.php')
-rw-r--r--system/core/Common.php21
1 files changed, 1 insertions, 20 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 56fe713bd..6a3d5ac0a 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -163,29 +163,10 @@
// Keep track of what we just loaded
is_loaded($class);
- $_classes[$class] =& instantiate_class(new $name());
+ $_classes[$class] = new $name();
return $_classes[$class];
}
-// ------------------------------------------------------------------------
-
-/**
- * Instantiate Class
- *
- * Returns a new class object by reference, used by load_class() and the DB class.
- * Required to retain PHP 4 compatibility and also not make PHP 5.3 cry.
- *
- * Use: $obj =& instantiate_class(new Foo());
- *
- * @access public
- * @param object
- * @return object
- */
- function &instantiate_class(&$class_object)
- {
- return $class_object;
- }
-
// --------------------------------------------------------------------
/**