git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ce54c0c
)
nieuws: support truncated dates in replies
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 19 Aug 2018 14:34:46 +0000
(16:34 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 19 Aug 2018 14:34:46 +0000
(16:34 +0200)
nieuws/index.php
patch
|
blob
|
history
diff --git
a/nieuws/index.php
b/nieuws/index.php
index 506cd0537ad2c3f46de1b032c15ec91eb2b93dae..374b9b0db8168399128b3f776a811daabe7c57db 100644
(file)
--- a/
nieuws/index.php
+++ b/
nieuws/index.php
@@
-30,7
+30,7
@@
if ($page and !is_numeric($page)) {
print '<ul class="replies">';
foreach (glob("$pagelink/*.txt") as $reply) {
- preg_match('</(\d{14}) : ([^:]*) [^/]* \.txt$>x', $reply, $replymeta);
+ preg_match('</(\d{
2,
14}) : ([^:]*) [^/]* \.txt$>x', $reply, $replymeta);
if (!$replymeta) continue;
$replydate = str_split($replymeta[1], 2);
$replydate[1] = $replydate[0] . $replydate[1];