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()) {
|
||||
|
||||
$this->calculateEnable();
|
||||
|
||||
if ($this->enable) {
|
||||
$this->enable([
|
||||
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
|
||||
]);
|
||||
}
|
||||
$this->enable([
|
||||
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
|
||||
]);
|
||||
|
||||
} else {
|
||||
/** @var Uri $uri */
|
||||
|
|
Loading…
Reference in New Issue