From da40a63decde75040e1d45c1134218718ebab798 Mon Sep 17 00:00:00 2001 From: Ahmet Bora Date: Tue, 5 Nov 2019 12:45:45 +0300 Subject: [PATCH] Fix isBlade() method --- composer.json | 2 +- src/Template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d2a8846..39c772b 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "template", "template-engine" ], - "version": "1.5.1", + "version": "1.5.2", "type": "kirby-plugin", "license": "MIT", "authors": [ diff --git a/src/Template.php b/src/Template.php index 563c1dd..476098f 100644 --- a/src/Template.php +++ b/src/Template.php @@ -107,7 +107,7 @@ public function render(array $data = []): string public function isBlade() { - return !file_exists($this->getPathTemplates() . "/" . $this->name() . "." . $this->bladeExtension()); + return file_exists($this->getPathTemplates() . "/" . $this->name() . "." . $this->bladeExtension()); } public function bladeExtension(): string