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,6 +285,10 @@ if ($_GET) {
|
||||||
default:
|
default:
|
||||||
errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET)));
|
errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET)));
|
||||||
}
|
}
|
||||||
|
} if (isset($_GET["language"])) {
|
||||||
|
header("Content-Type: text/html; charset=UTF-8");
|
||||||
|
$smarty->assign("directories", getDirectories());
|
||||||
|
$smarty->display("directories.html");
|
||||||
}else {
|
}else {
|
||||||
invalidCall();
|
invalidCall();
|
||||||
}
|
}
|
||||||
|
|
|
@ -343,6 +343,10 @@ if ($_GET) {
|
||||||
default:
|
default:
|
||||||
errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET)));
|
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 {
|
} else {
|
||||||
invalidCall();
|
invalidCall();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue