diff --git a/app/inc/smarty.php b/app/inc/smarty.php index 26be0b3..a466bd8 100644 --- a/app/inc/smarty.php +++ b/app/inc/smarty.php @@ -29,7 +29,7 @@ $smarty->assign('APPLICATION_NAME', NOMAPPLICATION); $smarty->assign('SERVER_URL', Utils::get_server_name()); $smarty->assign('SCRIPT_NAME', $_SERVER['SCRIPT_NAME']); $smarty->assign('TITLE_IMAGE', IMAGE_TITRE); -$smarty->assign('use_nav_js', is_file($_SERVER['DOCUMENT_ROOT'] . '/nav/nav.js')); +$smarty->assign('use_nav_js', strstr($_SERVER['SERVER_NAME'], 'framadate.org'); $smarty->assign('locale', $locale); $smarty->assign('langs', $ALLOWED_LANGUAGES); $smarty->assign('date_format', $date_format); diff --git a/tpl/header.tpl b/tpl/header.tpl index eeaf287..9523901 100644 --- a/tpl/header.tpl +++ b/tpl/header.tpl @@ -15,11 +15,11 @@ {/if}