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

git-svn-id: https://develop.svn.wordpress.org/trunk@12988 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-02-06 11:42:20 +00:00
parent 2d54780d5e
commit c45f4d2905
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);