Removing reference operators in view class constructors.

This commit is contained in:
mark_story 2010-11-12 22:51:53 -05:00
parent d044cdd02f
commit 85e072a64b
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

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