Pages without index.txt exception catch
This commit is contained in:
parent
0fb1525f29
commit
4a36bf6a15
|
@ -126,7 +126,11 @@ function build_all_pages()
|
||||||
// Order parents.
|
// Order parents.
|
||||||
foreach($pagesParents as $parentKey=>$childrenPages)
|
foreach($pagesParents as $parentKey=>$childrenPages)
|
||||||
{
|
{
|
||||||
$tmp = orderParent($tmp, array($parentKey=>$childrenPages), $pages[$parentKey]->position());
|
// 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;
|
$pagesParents = array(NO_PARENT_CHAR=>$tmpNoParents) + $tmp;
|
||||||
|
|
Loading…
Reference in New Issue