Skip to content

3.13.2

Latest

Choose a tag to compare

@dereuromark dereuromark released this 18 Jul 19:06
1063666

Improvements

  • DateTime::lengthOfTime() / relLengthOfTime(): automatic mode now scales units up through weeks, months and years, capped by a new accuracy option (default 2), e.g. 1 Week, 3 Days or 11 Years, 3 Months. relLengthOfTime() computes the difference calendar-exact via DateInterval (months/years respect calendar lengths and leap years) and gains a from option for a custom reference point. Relative unit words are translated with a relative msgctxt for grammatically correct wording (e.g. German dative: Vor 4 Tagen). Singular output fixed (1 Day instead of 1 Days), zero units are skipped. Legacy explicit-format engine kept for BC and extended with Y/M/W/w characters. #338
  • GravatarHelper: add a hashAlgo option (default sha256, md5 supported) so callers can restore Gravatar's pre-2024 MD5 identifier for legacy accounts. Without it, the SHA-256 switch silently changes the generated default avatar (identicon, monsterid, ...) for every account that has no real Gravatar image. Unknown values fall back to sha256 and the option never leaks into the URL or img attributes. #336

Full Changelog: 3.13.1...3.13.2