Merge pull request #141 from Gertt/patch-1

fix page ids not picking up folder-only pages
This commit is contained in:
Andy Miller
2015-02-07 09:56:54 -07:00

View File

@@ -1136,7 +1136,7 @@ class Page
// Path to the page.
$this->path = dirname(dirname($var));
}
return $this->name ? $this->path . '/' . $this->folder . '/' . $this->name : null;
return $this->path . '/' . $this->folder . '/' . ($this->name ?: '');
}
/**