]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try to return to the correct page from FlagProfileForm
authorEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 17:29:13 +0000 (18:29 +0100)
committerEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 17:29:13 +0000 (18:29 +0100)
plugins/UserFlag/UserFlagPlugin.php

index 6410ee1ce68fd5e00842ccf47e8ade476a1ec315..fd0c51f952261c57c24ae604a754fbca466a0495 100644 (file)
@@ -122,7 +122,11 @@ class UserFlagPlugin extends Plugin
 
         if (!empty($user)) {
 
-            $form = new FlagProfileForm($item->action, $item->profile);
+            list($action, $args) = $item->action->returnToArgs();
+
+            $args['action'] = $action;
+
+            $form = new FlagProfileForm($item->action, $item->profile, $args);
 
             $form->show();
         }