use return-to method for UserProfile widget

This commit is contained in:
Evan Prodromou 2009-11-16 17:54:50 +01:00
parent 968058c68b
commit 0580e824f0
1 changed files with 5 additions and 2 deletions

View File

@ -285,8 +285,11 @@ class UserProfile extends Widget
// return-to args, so we don't have to keep re-writing them
$r2args = array('action' => 'showstream',
'nickname' => $this->profile->nickname);
list($action, $r2args) = $this->out->returnToArgs();
// push the action into the list
$r2args['action'] = $action;
// block/unblock