mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-18 17:38: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
|
// allow comments
|
||||||
if (!$article->getComments() !== null
|
if (!$article->comments !== null
|
||||||
&& !($this->app->moduleManager->get('Comments') instanceof NullModule)
|
&& !($this->app->moduleManager->get('Comments') instanceof NullModule)
|
||||||
) {
|
) {
|
||||||
$commentCreateView = new \Modules\Comments\Theme\Backend\Components\Comment\CreateView($this->app->l11nManager, $request, $response);
|
$commentCreateView = new \Modules\Comments\Theme\Backend\Components\Comment\CreateView($this->app->l11nManager, $request, $response);
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$commentList = $news->getComments();
|
$commentList = $news->comments;
|
||||||
if (!empty($commentList) && $commentList->isActive()) :
|
if (!empty($commentList) && $commentList->isActive()) :
|
||||||
/* @todo: check if user has permission to create a comment here, maybe he is only allowed to read comments */
|
/* @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);
|
echo $this->getData('commentCreate')->render(1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user