From: Mischa POSLAWSKY Date: Wed, 3 Jul 2019 19:36:32 +0000 (+0200) Subject: nieuws/replies: shift date part from file names X-Git-Tag: v4.0~7 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/7985438060a98d20e0e2057600a21f4de9b673c7 nieuws/replies: shift date part from file names Fix date formatting since dummy parameter to showdate() was dropped in commit v3.9-6-ga16bdccbbe [nieuws/feed: conform article dates to RFC-3339] (2019-06-25). --- diff --git a/widget/nieuws/replies.php b/widget/nieuws/replies.php index 0847c7e..06af5d3 100644 --- a/widget/nieuws/replies.php +++ b/widget/nieuws/replies.php @@ -27,7 +27,7 @@ foreach (glob("$pagelink/*.html") as $reply) { preg_match('x', $reply, $replymeta); if (!$replymeta) continue; $replydate = str_split($replymeta[1], 2); - $replydate[1] = $replydate[0] . $replydate[1]; + $replydate[0] = array_shift($replydate) . $replydate[0]; $replyuser = new User("profile/{$replymeta[2]}"); print '
  • '; printf('%s %s',