Pages without index.txt exception catch
This commit is contained in:
parent
0fb1525f29
commit
4a36bf6a15
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue