From: Evan Prodromou Date: Mon, 16 Nov 2009 17:29:13 +0000 (+0100) Subject: try to return to the correct page from FlagProfileForm X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02cc7af1b6a6f8c460550ad0f884bf5e7a18d176;p=quix0rs-gnu-social.git try to return to the correct page from FlagProfileForm --- diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php index 6410ee1ce6..fd0c51f952 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(); }