From d7e759d4f2434af57065db3461d4637c3e2ea132 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios Date: Wed, 2 Sep 2020 12:43:49 -0400 Subject: [PATCH] made conditional universal --- app/web.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/web.php b/app/web.php index 469d54e..952967f 100644 --- a/app/web.php +++ b/app/web.php @@ -461,8 +461,15 @@ try { } unset($v); $handler::setVar('explore_semantics', $explore_semantics); + // Get active AND visible pages - $pages_visible_db = Page::getAll(['is_active' => 1, 'is_link_visible' => 1], ['field' => 'sort_display', 'order' => 'ASC']); + $versionCompare = '3.6.7'; + if (defined('G_APP_GITHUB_REPO')) { + $versionCompare = '1.0.0'; + } + if (version_compare(Settings::get('chevereto_version_installed'), $versionCompare, '>=')) { + $pages_visible_db = Page::getAll(['is_active' => 1, 'is_link_visible' => 1], ['field' => 'sort_display', 'order' => 'ASC']); + } $versionCompare = '3.12.4'; if (defined('G_APP_GITHUB_REPO')) { $versionCompare = '1.2.0';