Prevent a missing template problem on ignored routes

This commit is contained in:
Flavio Copes 2016-05-30 11:16:08 +02:00
parent 6a70718fc9
commit a95d0abd84
1 changed files with 3 additions and 6 deletions

View File

@ -102,12 +102,9 @@ class CommentsPlugin extends Plugin
if (!$this->isAdmin()) { if (!$this->isAdmin()) {
$this->calculateEnable(); $this->calculateEnable();
if ($this->enable) {
$this->enable([ $this->enable([
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0], 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
]); ]);
}
} else { } else {
/** @var Uri $uri */ /** @var Uri $uri */