mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 02:16:56 +02:00
Simplify modular page logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user