]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use return-to method for UserProfile widget
authorEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 16:54:50 +0000 (17:54 +0100)
committerEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 16:54:50 +0000 (17:54 +0100)
lib/userprofile.php

index dedac5bf1bfd2188d8819cc4a38764be1d7c997b..ee205af85df86284feb3286398971bf744547aea 100644 (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