delete configuration option $show_language_bar_selection

condition is based on the number of languages configured
This commit is contained in:
Bob Le Bricodeur 2014-11-12 21:28:27 +01:00
parent eb5677e451
commit a716ef8c47
2 changed files with 2 additions and 4 deletions

View File

@ -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
*/

View File

@ -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>