From a95d0abd849ca77f21d9d19063219c0c5a0abe78 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 30 May 2016 11:16:08 +0200 Subject: [PATCH] Prevent a missing template problem on ignored routes --- comments.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 */