Fix first page calculation
Cette révision appartient à :
Parent
3e374c7585
révision
d01374dddb
@ -72,7 +72,12 @@ abstract class Entry
|
||||
|
||||
if ($this instanceof Directory) {
|
||||
foreach ($this->value as $node) {
|
||||
if ($node instanceof Content && $node->title != 'index') {
|
||||
if ($node instanceof Content) {
|
||||
if (!count($node->getParents()) && $node->title == 'index') {
|
||||
//the homepage should not count as first page
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->first_page = $node;
|
||||
return $node;
|
||||
}
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user