mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-15 07:58:42 +00:00
fix templates
This commit is contained in:
parent
d9a47bee65
commit
e10e33a924
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user