mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-22 05:15:55 +02:00
Move forum config to settings
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user