Move forum config to settings

This commit is contained in:
slawkens
2023-07-20 16:36:59 +02:00
parent a7b8ccaee2
commit 55a5ccdd1e
15 changed files with 128 additions and 44 deletions

View File

@@ -111,12 +111,13 @@ $template['link_screenshots'] = getLink('gallery');
$template['link_movies'] = getLink('videos');
$template['link_gifts_history'] = getLink('gifts', 'history');
if($config['forum'] != '')
$forumSetting = setting('core.forum');
if($forumSetting != '')
{
if(strtolower($config['forum']) == 'site')
if(strtolower($forumSetting) == 'site')
$template['link_forum'] = "<a href='" . getLink('forum') . "'>";
else
$template['link_forum'] = "<a href='" . $config['forum'] . "' target='_blank'>";
$template['link_forum'] = "<a href='" . $forumSetting . "' target='_blank'>";
}
$twig->addGlobal('template_path', $template_path);