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 */