Ignore the continents-cities mo files when searching for the list of installed language packs. Fixes #12019

git-svn-id: http://svn.automattic.com/wordpress/trunk@12988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-02-06 11:42:20 +00:00
parent 0f924eee99
commit df792469b4
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ function get_available_languages( $dir = null ) {
if ( is_dir( $dir ) && $dh = opendir( $dir ) ) {
while ( ( $lang_file = readdir( $dh ) ) !== false ) {
if ( substr( $lang_file, -3 ) == '.mo' )
if ( substr( $lang_file, -3 ) == '.mo' && ( false === strpos( $lang_file, 'continents-cities' ) ) )
$languages[] = basename($lang_file, '.mo');
}
closedir($dh);