Make WordPress Core

Changeset 15138


Ignore:
Timestamp:
06/04/2010 12:59:44 PM (15 years ago)
Author:
ryan
Message:

Better ms lang file check. Props ocean90. fixes #13706

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/l10n.php

    r15137 r15138  
    512512
    513513    foreach( (array)glob( ( is_null( $dir) ? WP_LANG_DIR : $dir ) . '/*.mo' ) as $lang_file ) {
    514         if ( false === strpos( $lang_file, 'continents-cities' ) && false === strpos( $lang_file, 'ms-' ) )
    515             $languages[] = basename($lang_file, '.mo');
     514        $lang_file = basename($lang_file, '.mo');
     515        if ( 0 !== strpos( $lang_file, 'continents-cities' ) && 0 !== strpos( $lang_file, 'ms-' ) )
     516            $languages[] = $lang_file;
    516517    }
    517518
Note: See TracChangeset for help on using the changeset viewer.