bug fixes from the day before

This commit is contained in:
Dennis Eichhorn 2022-03-19 00:02:43 +01:00
parent 4c64fd072d
commit cc95a0291f
2 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,6 @@ $media = $this->getData('media') ?? [];
/** @var \Modules\Admin\Models\Account $account */
$account = $this->getData('account');
$accountDir = $account->getId() . ' ' . $account->login;
$previous = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=' . \reset($media)->getId() . '&ptype=p';

View File

@ -25,6 +25,10 @@ $view = $this->getData('view');
/** @var \Modules\Tag\Models\Tag[] $tag */
$tags = $media->getTags();
/** @var \Modules\Admin\Models\Account $account */
$account = $this->getData('account');
$accountDir = $account->getId() . ' ' . $account->login;
$mediaPath = \urldecode($media->getVirtualPath() ?? '/');
/** @var \phpOMS\Message\Http\HttpRequest $this->request */