X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FMWTimestamp.php;h=937aedbddc2726b902222729dd34b80e18f8e6b9;hb=9d9467c3a8ef2aff3c0bdfc916603232b6a2e200;hp=6f3be73f4d33e69a8ff5c4d51e6091e26fd436ed;hpb=90e1b22166b00e096930d90029bd9826843298b2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MWTimestamp.php b/includes/MWTimestamp.php index 6f3be73f4d..937aedbddc 100644 --- a/includes/MWTimestamp.php +++ b/includes/MWTimestamp.php @@ -106,7 +106,7 @@ class MWTimestamp { $ts, $da ) ) { - #TS_ISO_8601_BASIC + # TS_ISO_8601_BASIC } elseif ( preg_match( '/^(\d{4})\-(\d\d)\-(\d\d) (\d\d):(\d\d):(\d\d)\.*\d*[\+\- ](\d\d)$/', $ts, @@ -203,11 +203,15 @@ class MWTimestamp { * @deprecated since 1.26 Use Language::getHumanTimestamp directly * * @param MWTimestamp|null $relativeTo The base timestamp to compare to (defaults to now) - * @param User|null $user User the timestamp is being generated for (or null to use main context's user) - * @param Language|null $lang Language to use to make the human timestamp (or null to use main context's language) + * @param User|null $user User the timestamp is being generated for + * (or null to use main context's user) + * @param Language|null $lang Language to use to make the human timestamp + * (or null to use main context's language) * @return string Formatted timestamp */ - public function getHumanTimestamp( MWTimestamp $relativeTo = null, User $user = null, Language $lang = null ) { + public function getHumanTimestamp( + MWTimestamp $relativeTo = null, User $user = null, Language $lang = null + ) { if ( $lang === null ) { $lang = RequestContext::getMain()->getLanguage(); } @@ -373,7 +377,7 @@ class MWTimestamp { * Premade translations are not shipped as format() may return whatever the * system uses, localized or not, so translation must be done through wiki. * - * @since 1.25 + * @since 1.27 * @return Message The localized timezone message */ public function getTimezoneMessage() {