From a8b6841923e60daeaee9926d6fe8d0479a5037d2 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 8 Oct 2014 19:54:59 +0300 Subject: [PATCH] Simplify modular page logic --- system/src/Grav/Common/Page/Page.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 7a67ac148..adcc99acd 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -926,9 +926,6 @@ class Page // Path to the page. $this->path = dirname(dirname($var)); } - if ($this->modular()) { - return $this->name ? $this->path . '/' . $this->folder . '.md' : null; - } return $this->name ? $this->path . '/' . $this->folder . '/' . $this->name : null; }