Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
a716ef8c
Commit
a716ef8c
authored
10 years ago
by
Bob Le Bricodeur
Browse files
Options
Downloads
Patches
Plain Diff
delete configuration option $show_language_bar_selection
condition is based on the number of languages configured
parent
eb5677e4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/inc/config.inc.php
+0
-3
0 additions, 3 deletions
app/inc/config.inc.php
bandeaux.php
+2
-1
2 additions, 1 deletion
bandeaux.php
with
2 additions
and
4 deletions
app/inc/config.inc.php
+
0
−
3
View file @
a716ef8c
...
@@ -24,9 +24,6 @@
...
@@ -24,9 +24,6 @@
//use email for polls creation/modification/responses notification
//use email for polls creation/modification/responses notification
$use_smtp
=
true
;
$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
* index.php
*/
*/
...
...
This diff is collapsed.
Click to expand it.
bandeaux.php
+
2
−
1
View file @
a716ef8c
...
@@ -23,10 +23,11 @@ include_once __DIR__ . '/app/inc/init.php';
...
@@ -23,10 +23,11 @@ include_once __DIR__ . '/app/inc/init.php';
// bandeaux de titre
// bandeaux de titre
function
bandeau_titre
(
$titre
)
function
bandeau_titre
(
$titre
)
{
{
global
$ALLOWED_LANGUAGES
;
$img
=
(
IMAGE_TITRE
)
?
'<img src="'
.
Utils
::
get_server_name
()
.
IMAGE_TITRE
.
'" alt="'
.
NOMAPPLICATION
.
'">'
:
''
;
$img
=
(
IMAGE_TITRE
)
?
'<img src="'
.
Utils
::
get_server_name
()
.
IMAGE_TITRE
.
'" alt="'
.
NOMAPPLICATION
.
'">'
:
''
;
echo
'
echo
'
<header role="banner">'
;
<header role="banner">'
;
if
(
co
nfig_get
(
'show_language_bar_selection'
)
){
if
(
co
unt
(
$ALLOWED_LANGUAGES
)
>
1
){
echo
'<form method="post" action="#">
echo
'<form method="post" action="#">
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
<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>
<select name="lang" class="form-control" title="'
.
_
(
"Select the language"
)
.
'" >'
.
liste_lang
()
.
'</select>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment