Index: trunk/phase3/languages/Language.php |
— | — | @@ -338,9 +338,9 @@ |
339 | 339 | } |
340 | 340 | |
341 | 341 | global $IP; |
342 | | - $messageFiles = glob( "$IP/languages/messages/Messages*.php" ); |
343 | 342 | $names = array(); |
344 | | - foreach ( $messageFiles as $file ) { |
| 343 | + $dir = opendir( "$IP/languages/messages" ); |
| 344 | + while( false !== ( $file = readdir( $dir ) ) ) { |
345 | 345 | $m = array(); |
346 | 346 | if( preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $file, $m ) ) { |
347 | 347 | $code = str_replace( '_', '-', strtolower( $m[1] ) ); |
— | — | @@ -349,6 +349,7 @@ |
350 | 350 | } |
351 | 351 | } |
352 | 352 | } |
| 353 | + closedir( $dir ); |
353 | 354 | return $names; |
354 | 355 | } |
355 | 356 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -369,6 +369,8 @@ |
370 | 370 | * Fix comments in contributions and log pages for RTL languages |
371 | 371 | * Make installer include_path-independent, so it should work on hosts which |
372 | 372 | disable user setting of PHP include_path setting |
| 373 | +* glob() is horribly unreliable and doesn't work on some systems, including |
| 374 | + free.fr shared hosting. No longer using it in Language::getLanguageNames() |
373 | 375 | |
374 | 376 | |
375 | 377 | == API changes since 1.10 == |