Skip to content

Commit

Permalink
Removing reference operators in view class constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 13, 2010
1 parent d044cdd commit 85e072a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/libs/view/theme.php
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion cake/libs/view/view.php
Expand Up @@ -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++) {
Expand Down

0 comments on commit 85e072a

Please sign in to comment.