fixes #19
* special handling of language parameter to allow locale switching
This commit is contained in:
parent
77cc35dfb4
commit
513a5dcf20
2 changed files with 9 additions and 1 deletions
|
@ -285,7 +285,11 @@ if ($_GET) {
|
|||
default:
|
||||
errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET)));
|
||||
}
|
||||
} else {
|
||||
} if (isset($_GET["language"])) {
|
||||
header("Content-Type: text/html; charset=UTF-8");
|
||||
$smarty->assign("directories", getDirectories());
|
||||
$smarty->display("directories.html");
|
||||
}else {
|
||||
invalidCall();
|
||||
}
|
||||
} elseif ($_POST) {
|
||||
|
|
|
@ -343,6 +343,10 @@ if ($_GET) {
|
|||
default:
|
||||
errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET)));
|
||||
}
|
||||
} else if (isset($_GET['language'])) {
|
||||
header("Content-Type: text/html; charset=UTF-8");
|
||||
$smarty->assign("users", $namemap);
|
||||
$smarty->display("users.html");
|
||||
} else {
|
||||
invalidCall();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue