Changeset 12753 for trunk/wp-admin/options-general.php
- Timestamp:
- 01/18/2010 10:21:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r12752 r12753 293 293 <?php do_settings_fields('general', 'default'); ?> 294 294 <?php 295 if ( is_multisite() && is_dir( ABSPATH . LANGDIR ) && $dh = opendir( ABSPATH . LANGDIR ) ) 296 while( ( $lang_file = readdir( $dh ) ) !== false ) 295 296 $lang_files = array(); 297 if ( is_multisite() && is_dir( ABSPATH . LANGDIR ) && $dh = opendir( ABSPATH . LANGDIR ) ) { 298 while ( ( $lang_file = readdir( $dh ) ) !== false ) { 297 299 if ( substr( $lang_file, -3 ) == '.mo' ) 298 300 $lang_files[] = $lang_file; 299 $lang = get_option('WPLANG'); 300 301 if ( is_array($lang_files) && !empty($lang_files) ) { 302 ?> 301 } 302 } 303 304 if ( !empty($lang_files) ) { 305 ?> 303 306 <tr valign="top"> 304 307 <th width="33%" scope="row"><?php _e('Blog language:') ?></th> … … 309 312 </td> 310 313 </tr> 311 314 <?php 312 315 } // languages 313 316 ?>
Note: See TracChangeset
for help on using the changeset viewer.