diff --git a/app/inc/config.inc.php b/app/inc/config.inc.php index f702747..07488aa 100644 --- a/app/inc/config.inc.php +++ b/app/inc/config.inc.php @@ -24,9 +24,6 @@ //use email for polls creation/modification/responses notification $use_smtp = true; - //if only one language is allowed in constants.php, $ALLOWED_LANGUAGES, the language selection bar is useless - $show_language_bar_selection = true; - /** * index.php */ diff --git a/bandeaux.php b/bandeaux.php index b3c0249..dd2e1d3 100644 --- a/bandeaux.php +++ b/bandeaux.php @@ -23,10 +23,11 @@ include_once __DIR__ . '/app/inc/init.php'; // bandeaux de titre function bandeau_titre($titre) { + global $ALLOWED_LANGUAGES; $img = ( IMAGE_TITRE ) ? ''.NOMAPPLICATION.'' : ''; echo '
'; - if(config_get('show_language_bar_selection')){ + if(count($ALLOWED_LANGUAGES)>1){ echo '