diff --git a/comments.php b/comments.php index 0bc7be9..662a77d 100644 --- a/comments.php +++ b/comments.php @@ -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 */