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++) {