mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
0f69646186
commit
951e257fa2
1 changed files with 2 additions and 2 deletions
|
@ -553,13 +553,13 @@ class Model extends Overloadable {
|
||||||
$colKey = Inflector::underscore($className);
|
$colKey = Inflector::underscore($className);
|
||||||
|
|
||||||
if (ClassRegistry::isKeySet($colKey)) {
|
if (ClassRegistry::isKeySet($colKey)) {
|
||||||
if (phpversion() < 5) {
|
if (!PHP5) {
|
||||||
$this->{$className} =& ClassRegistry::getObject($colKey);
|
$this->{$className} =& ClassRegistry::getObject($colKey);
|
||||||
} else {
|
} else {
|
||||||
$this->{$className} = ClassRegistry::getObject($colKey);
|
$this->{$className} = ClassRegistry::getObject($colKey);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (phpversion() < 5) {
|
if (!PHP5) {
|
||||||
$this->{$className} =& new $className($id, $table, $ds);
|
$this->{$className} =& new $className($id, $table, $ds);
|
||||||
} else {
|
} else {
|
||||||
$this->{$className} = new $className($id, $table, $ds);
|
$this->{$className} = new $className($id, $table, $ds);
|
||||||
|
|
Loading…
Add table
Reference in a new issue