From 46715184091c06fac7329969deb3f6d585444a13 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 1 Oct 2018 21:02:04 +0300 Subject: [PATCH] Fixed missing slug in Page::init() --- system/src/Grav/Common/Page/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 67a59a064..3024cc394 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -137,7 +137,7 @@ class Page implements PageInterface $this->metadata(); $this->url(); $this->visible(); - $this->modularTwig($this->slug[0] === '_'); + $this->modularTwig(strpos($this->slug(), '_') === 0); $this->setPublishState(); $this->published(); $this->urlExtension();