Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websites
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
VideoLAN organization
websites
Commits
e77b6304
Commit
e77b6304
authored
7 years ago
by
Konstantin Pavlov
Browse files
Options
Downloads
Patches
Plain Diff
Use SCRIPT_NAME instead of SCRIPT_FILENAME.
parent
2f8aa5a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
www.videolan.org/include/footer.php
+1
-1
1 addition, 1 deletion
www.videolan.org/include/footer.php
www.videolan.org/include/header.php
+1
-1
1 addition, 1 deletion
www.videolan.org/include/header.php
with
2 additions
and
2 deletions
www.videolan.org/include/footer.php
+
1
−
1
View file @
e77b6304
...
...
@@ -95,7 +95,7 @@ function footer($tag = "", $alternate_lang=array(), $additional_class = "") {
if
(
isset
(
$alternate_lang
)
&&
count
(
$alternate_lang
)
>
0
)
{
echo
"<div class='footerHeading'>Translations: "
;
echo
'<select ONCHANGE="location = this.options[this.selectedIndex].value;">'
;
$root_filename
=
explode
(
'.'
,
$_SERVER
[
'SCRIPT_
FILE
NAME'
]
);
$root_filename
=
explode
(
'.'
,
$_SERVER
[
'SCRIPT_NAME'
]
);
echo
'<option value="/'
.
$root_filename
[
0
]
.
'.html"> </option>'
.
"
\n
"
;
foreach
(
$alternate_lang
as
$lang
)
{
if
(
$lang
==
"en"
)
...
...
This diff is collapsed.
Click to expand it.
www.videolan.org/include/header.php
+
1
−
1
View file @
e77b6304
...
...
@@ -164,7 +164,7 @@ function start_head( $title,
<?php
/* Alternate */
if
(
isset
(
$alternate_lang
)
)
{
$root_filename
=
explode
(
'.'
,
$_SERVER
[
'SCRIPT_
FILE
NAME'
]
);
$root_filename
=
explode
(
'.'
,
$_SERVER
[
'SCRIPT_NAME'
]
);
echo
"<!-- "
.
$root_filename
[
0
]
.
" -->"
;
foreach
(
$alternate_lang
as
$lang
)
{
...
...
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