Fix missing Twig template error if route is excluded but twig is loaded
This commit is contained in:
parent
cf31dcefe8
commit
f945d98cfb
|
@ -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
|
||||
|
||||
|
|
|
@ -115,9 +115,12 @@ class CommentsPlugin extends Plugin
|
|||
{
|
||||
$this->calculateEnable();
|
||||
|
||||
if ($this->enable) {
|
||||
$this->enable([
|
||||
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
|
||||
]);
|
||||
|
||||
if ($this->enable) {
|
||||
$this->enable([
|
||||
'onFormProcessed' => ['onFormProcessed', 0],
|
||||
'onFormPageHeaderProcessed' => ['onFormPageHeaderProcessed', 0],
|
||||
'onPageInitialized' => ['onPageInitialized', 10],
|
||||
|
|
Loading…
Reference in New Issue