Fixed language selection
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2528 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
0c4b4ba445
commit
4f67ddd94a
|
@ -1935,9 +1935,9 @@ function coordsToPoints( $coords )
|
|||
function getLanguages()
|
||||
{
|
||||
$langs = array();
|
||||
foreach ( glob("zm_lang_*_*.php") as $file )
|
||||
foreach ( glob("lang/*_*.php") as $file )
|
||||
{
|
||||
preg_match( '/zm_lang_(.+_.+)\.php/', $file, $matches );
|
||||
preg_match( '/([^\/]+_.+)\.php/', $file, $matches );
|
||||
$langs[$matches[1]] = $matches[1];
|
||||
}
|
||||
return( $langs );
|
||||
|
|
Loading…
Reference in New Issue