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

This commit is contained in:
Philipp 2022-11-15 22:26:52 +01:00
parent 53f3454874
commit 00883c9dcb
No known key found for this signature in database
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()]);