summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-18 09:15:19 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-18 09:15:19 -0400
commitc3adb121ecbd59bdb0a2cb272805f35cd3bc9082 (patch)
tree6555ceffaf4d91c4b75120573c47231010bcb458 /actions
parent65816a6e2fe22ace47daceb0070640bdf8d6cff6 (diff)
references
darcs-hash:20080618131519-84dde-a3af7c41be8d9606f39ce4be3029697f913ab053.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/finishaddopenid.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/actions/finishaddopenid.php b/actions/finishaddopenid.php
index 6a7bb3d24..97afc1471 100644
--- a/actions/finishaddopenid.php
+++ b/actions/finishaddopenid.php
@@ -34,7 +34,7 @@ class FinishaddopenidAction extends Action {
function try_login() {
- $consumer = oid_consumer();
+ $consumer =& oid_consumer();
$response = $consumer->complete(common_local_url('finishaddopenid'));
@@ -58,12 +58,12 @@ class FinishaddopenidAction extends Action {
$sreg = $sreg_resp->contents();
}
- $other = $this->get_user($canonical);
+ $other =& $this->get_user($canonical);
if ($other) {
$this->message(_t('This OpenID is already associated with user "') . $user->nickname . _t('"'));
} else {
- $cur = common_current_user();
+ $cur =& common_current_user();
$result = oid_link_user($cur->id, $display, $canonical);
if (!$result) {
$this->message(_t('Error connecting user'));
@@ -96,9 +96,9 @@ class FinishaddopenidAction extends Action {
return $user;
}
- function update_user($user, $sreg) {
+ function update_user(&$user, $sreg) {
- $profile = $user->getProfile();
+ $profile =& $user->getProfile();
$orig_profile = clone($profile);