calculate form return_url for post and message instead of using SESSION var

This commit is contained in:
Jonny Tischbein 2018-09-19 23:55:29 +02:00
parent 68c6895e1a
commit 807ad14521
3 changed files with 9 additions and 3 deletions

View file

@ -157,7 +157,7 @@ class Post extends BaseObject
if ($item["event-id"] != 0) {
$edpost = ["events/event/" . $item['event-id'], L10n::t("Edit")];
} else {
$edpost = ["editpost/" . $item['id'], L10n::t("Edit")];
$edpost = ["editpost/" . $item['id'] . "/" . base64_encode($a->cmd), L10n::t("Edit")];
}
$dropping = in_array($item['uid'], [0, local_user()]);
} else {