From 1084f71a3490f9573a14f8acaa3c0320d4f1a5d9 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 4 Jun 2010 12:53:44 +0000 Subject: [PATCH] Fix ms lang file check. Props ocean90. fixes #13706 git-svn-id: http://svn.automattic.com/wordpress/trunk@15137 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 d1e5f710a..193847156 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -511,7 +511,7 @@ function get_available_languages( $dir = null ) { $languages = array(); foreach( (array)glob( ( is_null( $dir) ? WP_LANG_DIR : $dir ) . '/*.mo' ) as $lang_file ) { - if ( false === strpos( $lang_file, 'continents-cities' ) && 0 !== strpos( $lang_file, 'ms-' ) ) + if ( false === strpos( $lang_file, 'continents-cities' ) && false === strpos( $lang_file, 'ms-' ) ) $languages[] = basename($lang_file, '.mo'); }