diff options
author | Brion Vibber <brion@pobox.com> | 2009-12-02 09:47:02 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-12-03 12:58:48 -0800 |
commit | c89b10ffe4adb1df724b6a7c5c31b42c7dd3376b (patch) | |
tree | fbe23c5841722fdc18ff895e9078c39e3a82e940 /actions | |
parent | 9e0f89ba4ff1695c0137faa89c08f8b5c60050ac (diff) |
Code style cleanup: dropped some unnecessary =& reference assignments where they're used only out of habit for PHP 4-style object semantics
Diffstat (limited to 'actions')
-rw-r--r-- | actions/all.php | 2 | ||||
-rw-r--r-- | actions/subscribers.php | 2 | ||||
-rw-r--r-- | actions/subscriptions.php | 2 | ||||
-rw-r--r-- | actions/userbyid.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/actions/all.php b/actions/all.php index 61cedce74..5a9d97dd7 100644 --- a/actions/all.php +++ b/actions/all.php @@ -160,7 +160,7 @@ class AllAction extends ProfileAction function showPageTitle() { - $user =& common_current_user(); + $user = common_current_user(); if ($user && ($user->id == $this->user->id)) { $this->element('h1', null, _("You and friends")); } else { diff --git a/actions/subscribers.php b/actions/subscribers.php index df9ec9961..cc9452820 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -57,7 +57,7 @@ class SubscribersAction extends GalleryAction function showPageNotice() { - $user =& common_current_user(); + $user = common_current_user(); if ($user && ($user->id == $this->profile->id)) { $this->element('p', null, _('These are the people who listen to '. diff --git a/actions/subscriptions.php b/actions/subscriptions.php index cc7b38ee4..0dc5ee762 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -59,7 +59,7 @@ class SubscriptionsAction extends GalleryAction function showPageNotice() { - $user =& common_current_user(); + $user = common_current_user(); if ($user && ($user->id == $this->profile->id)) { $this->element('p', null, _('These are the people whose notices '. diff --git a/actions/userbyid.php b/actions/userbyid.php index 86a61f20b..ebff7e4a7 100644 --- a/actions/userbyid.php +++ b/actions/userbyid.php @@ -69,7 +69,7 @@ class UserbyidAction extends Action if (!$id) { $this->clientError(_('No id.')); } - $user =& User::staticGet($id); + $user = User::staticGet($id); if (!$user) { $this->clientError(_('No such user.')); } |