try to return to the correct page from FlagProfileForm
This commit is contained in:
parent
55d00a3a90
commit
02cc7af1b6
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user