Simplify modular page logic

This commit is contained in:
Matias Griese
2014-10-08 19:54:59 +03:00
parent e09ab139c8
commit a8b6841923

View File

@@ -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;
}