diff --git a/app/inc/config.inc.php b/app/inc/config.inc.php index f702747c3d850243678cfa243333a10d2a15a0bb..07488aa39c30e81f15ec4ac0a9136aed1a65dcc4 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 b3c024965ad06bec4bfe1d75320176a332bcf349..dd2e1d351e9117514c4168ef7f0e701c5ed53808 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 ) ? '<img src="'. Utils::get_server_name(). IMAGE_TITRE. '" alt="'.NOMAPPLICATION.'">' : ''; echo ' <header role="banner">'; - if(config_get('show_language_bar_selection')){ + if(count($ALLOWED_LANGUAGES)>1){ echo '<form method="post" action="#"> <div class="input-group input-group-sm pull-right col-md-2 col-xs-4"> <select name="lang" class="form-control" title="'. _("Select the language") .'" >' . liste_lang() . '</select>