diff options
author | Evan Prodromou <evan@status.net> | 2010-02-14 12:09:07 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-14 12:09:07 -0500 |
commit | cea7d8018a70d759c2de7e8c8e5de3581d7e5fbd (patch) | |
tree | 38c85a254bcdd38c1febfd2789e2a003992348c4 /lib | |
parent | 62f5c04ad234be6d1a26097300944eacee895738 (diff) | |
parent | 9465a4d5c6b77bd77e78bc277a817e2b5724ec76 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/userprofile.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/userprofile.php b/lib/userprofile.php index 07e575085..43dfd05be 100644 --- a/lib/userprofile.php +++ b/lib/userprofile.php @@ -238,9 +238,12 @@ class UserProfile extends Widget if (Event::handle('StartProfilePageActionsElements', array(&$this->out, $this->profile))) { if (empty($cur)) { // not logged in - $this->out->elementStart('li', 'entity_subscribe'); - $this->showRemoteSubscribeLink(); - $this->out->elementEnd('li'); + if (Event::handle('StartProfileRemoteSubscribe', array(&$this->out, $this->profile))) { + $this->out->elementStart('li', 'entity_subscribe'); + $this->showRemoteSubscribeLink(); + $this->out->elementEnd('li'); + Event::handle('EndProfileRemoteSubscribe', array(&$this->out, $this->profile)); + } } else { if ($cur->id == $this->profile->id) { // your own page $this->out->elementStart('li', 'entity_edit'); |