From cc95a0291f62a314eb1fe5f9c64b40828bc5c5c9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 19 Mar 2022 00:02:43 +0100 Subject: [PATCH] bug fixes from the day before --- Theme/Backend/media-list.tpl.php | 1 - Theme/Backend/media-single.tpl.php | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Theme/Backend/media-list.tpl.php b/Theme/Backend/media-list.tpl.php index 856588a..aa65970 100755 --- a/Theme/Backend/media-list.tpl.php +++ b/Theme/Backend/media-list.tpl.php @@ -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'; diff --git a/Theme/Backend/media-single.tpl.php b/Theme/Backend/media-single.tpl.php index f926ae1..de55470 100755 --- a/Theme/Backend/media-single.tpl.php +++ b/Theme/Backend/media-single.tpl.php @@ -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 */