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:
parent
0f924eee99
commit
df792469b4
|
@ -501,7 +501,7 @@ function get_available_languages( $dir = null ) {
|
||||||
|
|
||||||
if ( is_dir( $dir ) && $dh = opendir( $dir ) ) {
|
if ( is_dir( $dir ) && $dh = opendir( $dir ) ) {
|
||||||
while ( ( $lang_file = readdir( $dh ) ) !== false ) {
|
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');
|
$languages[] = basename($lang_file, '.mo');
|
||||||
}
|
}
|
||||||
closedir($dh);
|
closedir($dh);
|
||||||
|
|
Loading…
Reference in New Issue