Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
be6406d0
Commit
be6406d0
authored
Jul 06, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Jul 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) fix some more php notices
parent
3b707f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
head.inc
src/www/head.inc
+5
-5
No files found.
src/www/head.inc
View file @
be6406d0
...
...
@@ -2,13 +2,13 @@
function
system_get_language_code
()
{
global
$config
;
$code
=
"en-US"
;
// Set default code.
// a language code, as per [RFC3066]
$language
=
$config
[
'system'
][
'language'
];
$code
=
str_replace
(
"_"
,
"-"
,
$language
);
if
(
empty
(
$code
))
$code
=
"en-US"
;
// Set default code.
if
(
isset
(
$config
[
'system'
][
'language'
]))
{
$language
=
$config
[
'system'
][
'language'
];
$code
=
str_replace
(
"_"
,
"-"
,
$language
);
}
return
$code
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment