fix templates

This commit is contained in:
Dennis Eichhorn 2020-12-06 16:14:42 +01:00
parent d9a47bee65
commit e10e33a924
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ final class BackendController extends Controller implements DashboardElementInte
);
// allow comments
if (!$article->getComments() !== null
if (!$article->comments !== null
&& !($this->app->moduleManager->get('Comments') instanceof NullModule)
) {
$commentCreateView = new \Modules\Comments\Theme\Backend\Components\Comment\CreateView($this->app->l11nManager, $request, $response);

View File

@ -54,7 +54,7 @@ echo $this->getData('nav')->render(); ?>
</div>
<?php
$commentList = $news->getComments();
$commentList = $news->comments;
if (!empty($commentList) && $commentList->isActive()) :
/* @todo: check if user has permission to create a comment here, maybe he is only allowed to read comments */
echo $this->getData('commentCreate')->render(1);