fixes #69
parent
2d77264cbb
commit
080c350913
14
app/web.php
14
app/web.php
|
@ -452,16 +452,16 @@ try {
|
||||||
$v['url'] = G\get_base_url('explore/' . $k);
|
$v['url'] = G\get_base_url('explore/' . $k);
|
||||||
}
|
}
|
||||||
unset($v);
|
unset($v);
|
||||||
|
|
||||||
$handler::setVar('explore_semantics', $explore_semantics);
|
$handler::setVar('explore_semantics', $explore_semantics);
|
||||||
|
|
||||||
// Get active AND visible pages
|
// Get active AND visible pages
|
||||||
if (version_compare(Settings::get('chevereto_version_installed'), '3.6.7', '>=')) {
|
$pages_visible_db = Page::getAll(['is_active' => 1, 'is_link_visible' => 1], ['field' => 'sort_display', 'order' => 'ASC']);
|
||||||
$pages_visible_db = Page::getAll(['is_active' => 1, 'is_link_visible' => 1], ['field' => 'sort_display', 'order' => 'ASC']);
|
$versionCompare = '3.12.4';
|
||||||
$pageHandle = version_compare(Settings::get('chevereto_version_installed'), '3.12.4', '>=') ? 'internal' : 'url_key';
|
if (defined('G_APP_GITHUB_REPO')) {
|
||||||
$handler::setVar('page_tos', Page::getSingle('tos', $pageHandle));
|
$versionCompare = '1.2.0';
|
||||||
$handler::setVar('page_privacy', Page::getSingle('privacy', $pageHandle));
|
|
||||||
}
|
}
|
||||||
|
$pageHandle = version_compare(Settings::get('chevereto_version_installed'), $versionCompare, '>=') ? 'internal' : 'url_key';
|
||||||
|
$handler::setVar('page_tos', Page::getSingle('tos', $pageHandle));
|
||||||
|
$handler::setVar('page_privacy', Page::getSingle('privacy', $pageHandle));
|
||||||
$pages_visible = [];
|
$pages_visible = [];
|
||||||
if ($pages_visible_db) {
|
if ($pages_visible_db) {
|
||||||
foreach ($pages_visible_db as $k => $v) {
|
foreach ($pages_visible_db as $k => $v) {
|
||||||
|
|
Loading…
Reference in New Issue