Prevent a missing template problem on ignored routes
This commit is contained in:
parent
6a70718fc9
commit
a95d0abd84
|
@ -102,12 +102,9 @@ class CommentsPlugin extends Plugin
|
||||||
if (!$this->isAdmin()) {
|
if (!$this->isAdmin()) {
|
||||||
|
|
||||||
$this->calculateEnable();
|
$this->calculateEnable();
|
||||||
|
|
||||||
if ($this->enable) {
|
|
||||||
$this->enable([
|
$this->enable([
|
||||||
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
|
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
|
||||||
]);
|
]);
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/** @var Uri $uri */
|
/** @var Uri $uri */
|
||||||
|
|
Loading…
Reference in New Issue