free.fr shared hosting. No longer using it in Language::getLanguageNames()
* Fix comments in contributions and log pages for RTL languages
* Make installer include_path-independent, so it should work on hosts which
disable user setting of PHP include_path setting
+* glob() is horribly unreliable and doesn't work on some systems, including
+ free.fr shared hosting. No longer using it in Language::getLanguageNames()
== API changes since 1.10 ==
}
global $IP;
- $messageFiles = glob( "$IP/languages/messages/Messages*.php" );
$names = array();
- foreach ( $messageFiles as $file ) {
+ $dir = opendir( "$IP/languages/messages" );
+ while( false !== ( $file = readdir( $dir ) ) ) {
$m = array();
if( preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $file, $m ) ) {
$code = str_replace( '_', '-', strtolower( $m[1] ) );
}
}
}
+ closedir( $dir );
return $names;
}