summaryrefslogtreecommitdiff
path: root/plugins/UserFlag
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-16 18:29:13 +0100
committerEvan Prodromou <evan@status.net>2009-11-16 18:29:13 +0100
commit02cc7af1b6a6f8c460550ad0f884bf5e7a18d176 (patch)
treecf166612a7d12675bd5ed50a932cc566a0ff152b /plugins/UserFlag
parent55d00a3a907fa275a0df580a82cea20da95889c6 (diff)
try to return to the correct page from FlagProfileForm
Diffstat (limited to 'plugins/UserFlag')
-rw-r--r--plugins/UserFlag/UserFlagPlugin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php
index 6410ee1ce..fd0c51f95 100644
--- a/plugins/UserFlag/UserFlagPlugin.php
+++ b/plugins/UserFlag/UserFlagPlugin.php
@@ -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();
}