Update page_header.php

This commit is contained in:
Roman Kelesidis 2025-06-08 13:36:57 +03:00
commit 80a749cf06

View file

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