X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FMWTimestamp.php;h=02a3d2cfe6d7e6beaf3f5f27d2ec2725122836fe;hp=d28169f388e1e46120322bf269f9ed1891d8dd9f;hb=de64366f58f0af7a02a417833c8e0605e4140fab;hpb=5410cfccce9b0b84bc909506c9b66d3f27d6dba7 diff --git a/includes/MWTimestamp.php b/includes/MWTimestamp.php index d28169f388..02a3d2cfe6 100644 --- 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' ); - } else { - $data[0] = 'Offset'; } + + $data[0] = 'Offset'; } $diff = 0; @@ -189,9 +189,9 @@ class MWTimestamp extends ConvertibleTimestamp { $msg = wfMessage( $key ); if ( $msg->exists() ) { return $msg; - } else { - return new RawMessage( $tzMsg ); } + + return new RawMessage( $tzMsg ); } /**