diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 722ac46..09531ac 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -16,6 +16,7 @@ namespace Modules\Editor\Controller; use Modules\Editor\Models\EditorDocMapper; use Modules\Editor\Models\PermissionState; +use Modules\Media\Models\CollectionMapper; use phpOMS\Account\PermissionType; use phpOMS\Asset\AssetType; use phpOMS\Contract\RenderableInterface; @@ -23,7 +24,6 @@ use phpOMS\Message\Http\RequestStatusCode; use phpOMS\Message\RequestAbstract; use phpOMS\Message\ResponseAbstract; use phpOMS\Views\View; -use Modules\Media\Models\CollectionMapper; /** * Calendar controller class. @@ -100,7 +100,7 @@ final class BackendController extends Controller $view->setTemplate('/Modules/Editor/Theme/Backend/editor-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005301001, $request, $response)); - $path = (string) ($request->getData('path') ?? '/'); + $path = (string) ($request->getData('path') ?? '/'); $collection = CollectionMapper::getByVirtualPath(\str_replace('+', ' ', $path)); $parent = CollectionMapper::getParentCollection(\str_replace('+', ' ', $path)); diff --git a/Theme/Backend/editor-list.tpl.php b/Theme/Backend/editor-list.tpl.php index b0c71c0..f9467a8 100755 --- a/Theme/Backend/editor-list.tpl.php +++ b/Theme/Backend/editor-list.tpl.php @@ -70,7 +70,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Created'); ?> $value) : ++$count; - $url = UriFactory::build('{/prefix}editor/list?path=' . \rtrim($value->getVirtualPath(), '/') . '/' . $value->getName()); + $url = UriFactory::build('{/prefix}editor/list?path=' . \rtrim($value->getVirtualPath(), '/') . '/' . $value->getName()); ?>