button: support extend parameter name

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@120 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2008-09-29 23:14:17 +00:00
parent cf1068db58
commit 8f97ddfa03

View File

@ -16,7 +16,7 @@ require_once('libs/common.php');
require_once('libs/operator.php');
$image = verifyparam("image","/^\w+$/", "webim");
$lang = verifyparam("lang", "/^[\w-]{2,5}$/", "");
$lang = verifyparam(isset($_GET['language']) ? "language" : "lang", "/^[\w-]{2,5}$/", "");
if(!$lang || !in_array($lang,$available_locales)) {
$lang = $current_locale;
}