dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "objectcache: add some WANObjectCache comments to set() and delete()"
[lhc/web/wiklou.git]
/
maintenance
/
language
/
date-formats.php
diff --git
a/maintenance/language/date-formats.php
b/maintenance/language/date-formats.php
index
dc275ab
..
f93c506
100644
(file)
--- a/
maintenance/language/date-formats.php
+++ b/
maintenance/language/date-formats.php
@@
-41,7
+41,7
@@
class DateFormats extends Maintenance {
global $IP;
foreach ( glob( "$IP/languages/messages/Messages*.php" ) as $filename ) {
$base = basename( $filename );
global $IP;
foreach ( glob( "$IP/languages/messages/Messages*.php" ) as $filename ) {
$base = basename( $filename );
- $m =
array()
;
+ $m =
[]
;
if ( !preg_match( '/Messages(.*)\.php$/', $base, $m ) ) {
continue;
}
if ( !preg_match( '/Messages(.*)\.php$/', $base, $m ) ) {
continue;
}
@@
-50,7
+50,7
@@
class DateFormats extends Maintenance {
$lang = Language::factory( $code );
$prefs = $lang->getDatePreferences();
if ( !$prefs ) {
$lang = Language::factory( $code );
$prefs = $lang->getDatePreferences();
if ( !$prefs ) {
- $prefs =
array( 'default' )
;
+ $prefs =
[ 'default' ]
;
}
$this->output( "date: " );
foreach ( $prefs as $index => $pref ) {
}
$this->output( "date: " );
foreach ( $prefs as $index => $pref ) {
@@
-78,5
+78,5
@@
class DateFormats extends Maintenance {
}
}
}
}
-$maintClass =
"DateFormats"
;
+$maintClass =
DateFormats::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;