delete configuration option $show_language_bar_selection
condition is based on the number of languages configured
This commit is contained in:
parent
eb5677e451
commit
a716ef8c47
@ -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
|
||||
*/
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user