Fix page tree
This commit is contained in:
parent
a58bfc567e
commit
03cc10183c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue