made conditional universal

This commit is contained in:
Rodolfo Berrios 2020-09-02 12:43:49 -04:00
parent 5dfe197629
commit d7e759d4f2

View file

@ -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';