projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aae1a2b
)
fix language change
author
Alan
<alan@roojs.com>
Mon, 28 Nov 2022 04:21:08 +0000
(12:21 +0800)
committer
Alan
<alan@roojs.com>
Mon, 28 Nov 2022 04:21:08 +0000
(12:21 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
b17a8c5
..
d18cdd5
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-376,8
+376,17
@@
class Pman_Login extends Pman
$u->login();
// we might need this later..
$this->addEvent("LOGIN", false, session_id());
+
+
+
if (!empty($_REQUEST['lang'])) {
- $u->lang($_REQUEST['lang']);
+
+ if (!empty($ff->languages['avail']) && !in_array($_REQUEST['lang'],$ff->languages['avail'])) {
+ // ignore.
+ } else {
+
+ $u->lang($_REQUEST['lang']);
+ }
}
// log it..