From f945d98cfbc496531a2979826c01d9daf91a827b Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 15 Sep 2016 18:08:52 +0200 Subject: [PATCH 1/2] Fix missing Twig template error if route is excluded but twig is loaded --- CHANGELOG.md | 6 ++++++ comments.php | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f49ee61..02466e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.2.4 +## 09/15/2016 + +1. [](#bugfix) + * Fix missing Twig template error if route is excluded but twig is loaded + # v1.2.3 ## 09/15/2016 diff --git a/comments.php b/comments.php index 0058eff..0629771 100644 --- a/comments.php +++ b/comments.php @@ -115,9 +115,12 @@ class CommentsPlugin extends Plugin { $this->calculateEnable(); + $this->enable([ + 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0], + ]); + if ($this->enable) { $this->enable([ - 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0], 'onFormProcessed' => ['onFormProcessed', 0], 'onFormPageHeaderProcessed' => ['onFormPageHeaderProcessed', 0], 'onPageInitialized' => ['onPageInitialized', 10], From d2d8e6894396022d225b2189787e68ef1279f9b6 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 15 Sep 2016 18:36:33 +0200 Subject: [PATCH 2/2] Prepare release --- blueprints.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints.yaml b/blueprints.yaml index ea50097..41ce93a 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Comments -version: 1.2.3 +version: 1.2.4 description: Adds a commenting functionality to your site icon: comment author: