Skip to content
Permalink
Browse files

Remove PHP5 conditional statements.

  • Loading branch information...
predominant committed May 3, 2010
1 parent c1eaa4b commit 87db96638384dcf548aa589de731aa54c856deab
Showing with 3 additions and 9 deletions.
  1. +3 −9 cake/libs/controller/controller.php
@@ -594,15 +594,9 @@ public function loadModel($modelClass = null, $id = null) {
if (($cached === false)) {
$this->modelNames[] = $modelClass;
if (!PHP5) {
$this->{$modelClass} =& ClassRegistry::init(array(
'class' => $plugin . $modelClass, 'alias' => $modelClass, 'id' => $id
));
} else {
$this->{$modelClass} = ClassRegistry::init(array(
'class' => $plugin . $modelClass, 'alias' => $modelClass, 'id' => $id
));
}
$this->{$modelClass} = ClassRegistry::init(array(
'class' => $plugin . $modelClass, 'alias' => $modelClass, 'id' => $id
));
if (!$this->{$modelClass}) {
return $this->cakeError('missingModel', array(array(

0 comments on commit 87db966

Please sign in to comment.
You can’t perform that action at this time.