mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-18 09:28:41 +00:00
fix api asignment
This commit is contained in:
parent
e26e820fd0
commit
73c1369fe1
|
|
@ -169,7 +169,7 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
// allow comments
|
// allow comments
|
||||||
if (!empty($request->getData('allow_comments'))
|
if (!empty($request->getData('allow_comments'))
|
||||||
&& !($commentApi = $this->app->moduleManager->get('Comments') instanceof NullModule)
|
&& !(($commentApi = $this->app->moduleManager->get('Comments')) instanceof NullModule)
|
||||||
) {
|
) {
|
||||||
/** @var \Modules\Comments\Controller\ApiController $commentApi */
|
/** @var \Modules\Comments\Controller\ApiController $commentApi */
|
||||||
$commnetList = $commentApi->createCommentList();
|
$commnetList = $commentApi->createCommentList();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user