From 85e2ccd942fc67944c9324e71097f426abf75a01 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 20 Mar 2013 20:00:25 +0100 Subject: remove php4-style object reference passing #2 --- www/watchlist.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'www/watchlist.php') diff --git a/www/watchlist.php b/www/watchlist.php index ded6782..667cbe9 100644 --- a/www/watchlist.php +++ b/www/watchlist.php @@ -62,7 +62,7 @@ if ($user) { $templateservice->loadTemplate('error.404.tpl', $tplVars); exit(); } else { - $userid =& $userinfo->getId(); + $userid = $userinfo->getId(); } } } @@ -73,7 +73,7 @@ $tplVars['loadjs'] = true; if ($user) { $tplVars['user'] = $user; $tplVars['userid'] = $userid; - $tplVars['userinfo'] =& $userinfo; + $tplVars['userinfo'] = $userinfo; // Pagination $perpage = getPerPageCount($currentUser); @@ -91,12 +91,12 @@ if ($user) { $tplVars['start'] = $start; $tplVars['bookmarkCount'] = $start + 1; - $bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, $userid, NULL, NULL, getSortOrder(), true); + $bookmarks = $bookmarkservice->getBookmarks($start, $perpage, $userid, NULL, NULL, getSortOrder(), true); $tplVars['sidebar_blocks'] = array('watchlist'); $tplVars['watched'] = true; $tplVars['total'] = $bookmarks['total']; - $tplVars['bookmarks'] =& $bookmarks['bookmarks']; + $tplVars['bookmarks'] = $bookmarks['bookmarks']; $tplVars['cat_url'] = createURL('tags', '%2$s'); $tplVars['nav_url'] = createURL('watchlist', '%s/%s%s'); -- cgit v1.2.3-54-g00ecf