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
Make WatchedItemQueryService depend on PermissionManager
[lhc/web/wiklou.git]
/
includes
/
MWTimestamp.php
diff --git
a/includes/MWTimestamp.php
b/includes/MWTimestamp.php
index
d28169f
..
02a3d2c
100644
(file)
--- a/
includes/MWTimestamp.php
+++ b/
includes/MWTimestamp.php
@@
-93,9
+93,9
@@
class MWTimestamp extends ConvertibleTimestamp {
if ( $tz ) {
$this->timestamp->setTimezone( $tz );
return new DateInterval( 'P0Y' );
if ( $tz ) {
$this->timestamp->setTimezone( $tz );
return new DateInterval( 'P0Y' );
- } else {
- $data[0] = 'Offset';
}
}
+
+ $data[0] = 'Offset';
}
$diff = 0;
}
$diff = 0;
@@
-189,9
+189,9
@@
class MWTimestamp extends ConvertibleTimestamp {
$msg = wfMessage( $key );
if ( $msg->exists() ) {
return $msg;
$msg = wfMessage( $key );
if ( $msg->exists() ) {
return $msg;
- } else {
- return new RawMessage( $tzMsg );
}
}
+
+ return new RawMessage( $tzMsg );
}
/**
}
/**