This commit is contained in:
Roman Kelesidis 2025-06-08 13:41:16 +03:00
commit 6ddee254f1
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ require __DIR__ . '/common.php';
$page_cfg['load_tpl_vars'] = [ $page_cfg['load_tpl_vars'] = [
'post_icons' 'post_icons'
]; ];
$page_cfg['canonical_link'] = true;
// Show last topic // Show last topic
$show_last_topic = true; $show_last_topic = true;

View file

@ -125,7 +125,7 @@ $template->assign_vars([
'ALLOW_ROBOTS' => !$bb_cfg['board_disable'] && (!isset($page_cfg['allow_robots']) || $page_cfg['allow_robots'] === true), 'ALLOW_ROBOTS' => !$bb_cfg['board_disable'] && (!isset($page_cfg['allow_robots']) || $page_cfg['allow_robots'] === true),
'META_CANONICAL' => (isset($page_cfg['canonical_link']) && $page_cfg['canonical_link'] === true) 'META_CANONICAL' => (isset($page_cfg['canonical_link']) && $page_cfg['canonical_link'] === true)
? getCanonicalUrl() ? getCanonicalUrl()
: ((is_string($page_cfg['canonical_link'])) ? $page_cfg['canonical_link'] : false), : ((isset($page_cfg['canonical_link']) && is_string($page_cfg['canonical_link'])) ? $page_cfg['canonical_link'] : false),
'META_DESCRIPTION' => $page_cfg['meta_description'] ?? '', 'META_DESCRIPTION' => $page_cfg['meta_description'] ?? '',
'SITENAME' => $bb_cfg['sitename'], 'SITENAME' => $bb_cfg['sitename'],