Fixed language selection

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2528 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2008-07-15 21:24:14 +00:00
parent 0c4b4ba445
commit 4f67ddd94a
1 changed files with 2 additions and 2 deletions

View File

@ -1935,9 +1935,9 @@ function coordsToPoints( $coords )
function getLanguages() function getLanguages()
{ {
$langs = array(); $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]; $langs[$matches[1]] = $matches[1];
} }
return( $langs ); return( $langs );