Disable inherit_index in generated mode

This commit is contained in:
Stéphane Goetz 2015-08-16 22:24:49 +02:00
parent bcfe98134f
commit a7aff213de

View File

@ -1,5 +1,7 @@
<?php namespace Todaymade\Daux\Tree; <?php namespace Todaymade\Daux\Tree;
use Todaymade\Daux\Daux;
class Directory extends Entry class Directory extends Entry
{ {
/** @var Entry[] */ /** @var Entry[] */
@ -57,11 +59,12 @@ class Directory extends Entry
/* /*
If the inherit_index flag is set, then we seek child content If the inherit_index flag is set, then we seek child content
*/ */
if( if (
!empty($this->getConfig()['live']['inherit_index']) $this->getConfig()['mode'] == Daux::LIVE_MODE
&& $first_page = $this->seekFirstPage() && !empty($this->getConfig()['live']['inherit_index'])
){ && $first_page = $this->seekFirstPage()
return $first_page; ) {
return $first_page;
} }
return null; return null;