fixed typo in previous commit: problem pointed out by Nahuel Grisolia <ngrisolia@cybsec.com>

This commit is contained in:
Ralf Becker 2010-02-13 04:47:01 +00:00
parent 34f2a64b51
commit 8b92fc4998

View File

@ -206,7 +206,7 @@ class setup
static function get_lang()
{
$ConfigLang = get_var('ConfigLang', array('POST','COOKIE'));
if (preg_match('/^[a-z]{2}(-[a-z]{2})?$',$ConfigLang))
if (preg_match('/^[a-z]{2}(-[a-z]{2})?$/',$ConfigLang))
{
return $ConfigLang;
}