try to return to the correct page from FlagProfileForm

This commit is contained in:
Evan Prodromou 2009-11-16 18:29:13 +01:00
parent 55d00a3a90
commit 02cc7af1b6

View File

@ -122,7 +122,11 @@ class UserFlagPlugin extends Plugin
if (!empty($user)) { 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(); $form->show();
} }