diff --git a/web/includes/functions.php b/web/includes/functions.php index 62d11c2db..d97010742 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -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 );