X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMWTimestamp.php;h=02a3d2cfe6d7e6beaf3f5f27d2ec2725122836fe;hb=d6ed082b6d66adfc5f603d8b573deaef83d4e045;hp=d28169f388e1e46120322bf269f9ed1891d8dd9f;hpb=285134ac5644fe424cf6e7df37aca5b831565641;p=lhc%2Fweb%2Fwiklou.git 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 ); } /**