1
0
Fork 0

Move mod/editpost.php to src\Module\Post\Edit

This commit is contained in:
Philipp Holzer 2022-11-15 22:26:52 +01:00
commit 00883c9dcb
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
6 changed files with 238 additions and 175 deletions

View file

@ -220,7 +220,7 @@ class Post
if ($item['event-id'] != 0) {
$edpost = ['calendar/event/edit/' . $item['event-id'], DI::l10n()->t('Edit')];
} else {
$edpost = ['editpost/' . $item['id'], DI::l10n()->t('Edit')];
$edpost = [sprintf('post/%s/edit', $item['id']), DI::l10n()->t('Edit')];
}
}
$dropping = in_array($item['uid'], [0, DI::userSession()->getLocalUserId()]);