From 85e072a64b653c3d02653d4654bf9a3e4cde8f6d Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 12 Nov 2010 22:51:53 -0500 Subject: [PATCH] Removing reference operators in view class constructors. --- cake/libs/view/theme.php | 2 +- cake/libs/view/view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/theme.php b/cake/libs/view/theme.php index 5e52c99c4..80e56ae42 100644 --- a/cake/libs/view/theme.php +++ b/cake/libs/view/theme.php @@ -38,7 +38,7 @@ class ThemeView extends View { * * @param Controller $controller Controller object to be rendered. */ - function __construct(&$controller) { + function __construct($controller) { parent::__construct($controller); $this->theme = $controller->theme; } diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index c7ff4de67..3db73cf3d 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -289,7 +289,7 @@ class View extends Object { * * @param Controller $controller A controller object to pull View::__passedArgs from. */ - function __construct(&$controller) { + function __construct($controller) { if (is_object($controller)) { $count = count($this->__passedVars); for ($j = 0; $j < $count; $j++) {