Pages without index.txt exception catch

This commit is contained in:
dignajar 2015-10-29 00:49:09 -03:00
parent 0fb1525f29
commit 4a36bf6a15
1 changed files with 5 additions and 1 deletions

View File

@ -126,8 +126,12 @@ function build_all_pages()
// Order parents.
foreach($pagesParents as $parentKey=>$childrenPages)
{
// DEBUG: Workaround, Esto es un bug, cuando se usa el Cli mode
// DEBUG: Se genera un padre sin index.txt y adentro hay un hijo
if(isset($pages[$parentKey])) {
$tmp = orderParent($tmp, array($parentKey=>$childrenPages), $pages[$parentKey]->position());
}
}
$pagesParents = array(NO_PARENT_CHAR=>$tmpNoParents) + $tmp;
}