Removing model references to phpversion()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3377 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-08-06 23:21:36 +00:00
parent 0f69646186
commit 951e257fa2

View file

@ -553,13 +553,13 @@ class Model extends Overloadable {
$colKey = Inflector::underscore($className);
if (ClassRegistry::isKeySet($colKey)) {
if (phpversion() < 5) {
if (!PHP5) {
$this->{$className} =& ClassRegistry::getObject($colKey);
} else {
$this->{$className} = ClassRegistry::getObject($colKey);
}
} else {
if (phpversion() < 5) {
if (!PHP5) {
$this->{$className} =& new $className($id, $table, $ds);
} else {
$this->{$className} = new $className($id, $table, $ds);