X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMWTimestamp.php;h=02a3d2cfe6d7e6beaf3f5f27d2ec2725122836fe;hb=e22efbce178309cb4dd537633b634bfc9e17d571;hp=d28169f388e1e46120322bf269f9ed1891d8dd9f;hpb=60557e0370980e23a9f07ab412ccd73e10223652;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 ); } /**