"fixed not working language selection after changeing the lang-filenames from phpgw_XX.lang to egw_XX.lang"

This commit is contained in:
Ralf Becker 2007-10-31 07:50:56 +00:00
parent b4bd76fbb5
commit c8eec1ae36

View File

@ -130,9 +130,9 @@
$d = dir('./lang');
while($file=$d->read())
{
if(preg_match('/^phpgw_([-a-z]+).lang$/i',$file,$matches))
if(preg_match('/^(php|e)gw_([-a-z]+).lang$/i',$file,$matches))
{
$languages[$matches[1]]['available'] = True;
$languages[$matches[2]]['available'] = True;
}
}
$d->close();