This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
friendica
/
friendica
mirror of
https://github.com/friendica/friendica.git
Watch
1
Star
2
Fork
1
Code
Issues
Releases
49
Wiki
Activity
Browse Source
Enable logged in users to force a certain language
pull/6482/head
Jeroen De Meerleer
2 years ago
committed by
Hypolite Petovan
parent
b440b4c338
commit
33f7fd72ca
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/Core/L10n.php
+ 4
- 0
src/Core/L10n.php
View File
@ -74,6 +74,10 @@ class L10n extends BaseObject
}
}
}
//if $_GET['lang'] is set force $_GET['lang']
if
(
isset
(
$_GET
[
'lang'
]))
{
$_SESSION
[
'language'
]
=
$_GET
[
'lang'
];
}
}
public
static
function
setLangFromSession
()
Write
Preview
Loading…
Cancel
Save