* special handling of language parameter to allow locale switching
This commit is contained in:
Jan Dittberner 2007-12-02 21:23:20 +00:00
parent 77cc35dfb4
commit 513a5dcf20
2 changed files with 9 additions and 1 deletions

View file

@ -285,6 +285,10 @@ if ($_GET) {
default:
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 {
invalidCall();
}

View file

@ -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();
}