From df792469b4f5cd83d3f5de5c9cb80a1d06d8ca96 Mon Sep 17 00:00:00 2001 From: westi Date: Sat, 6 Feb 2010 11:42:20 +0000 Subject: [PATCH] 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 --- wp-includes/l10n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index a7c0a755a..50964410a 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -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);