Fix page tree

This commit is contained in:
Daniel Rudolf 2018-01-31 12:29:59 +01:00
parent a58bfc567e
commit 03cc10183c
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -1857,7 +1857,8 @@ class Pico
foreach ($this->pages as $id => &$pageData) {
// main index page
if ($id === 'index') {
$this->pageTree['']['/'] = array('id' => '/', 'page' => &$pageData);
$this->pageTree['']['/']['id'] = '/';
$this->pageTree['']['/']['page'] = &$pageData;
$pageData['tree_node'] = &$this->pageTree['']['/'];
continue;
}