From a7aff213de6a0886405e4eb5c37552740671d985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Sun, 16 Aug 2015 22:24:49 +0200 Subject: [PATCH] Disable inherit_index in generated mode --- libs/Tree/Directory.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libs/Tree/Directory.php b/libs/Tree/Directory.php index ec59342..0199210 100644 --- a/libs/Tree/Directory.php +++ b/libs/Tree/Directory.php @@ -1,5 +1,7 @@ getConfig()['live']['inherit_index']) - && $first_page = $this->seekFirstPage() - ){ - return $first_page; + if ( + $this->getConfig()['mode'] == Daux::LIVE_MODE + && !empty($this->getConfig()['live']['inherit_index']) + && $first_page = $this->seekFirstPage() + ) { + return $first_page; } return null;