page: move showdate() into formatting include
[minimedit.git] / widget / nieuws.php
index 7185036121902fc2b4e946197282b9f28b583c06..c12efc8db3348b5b262f1c24dfe77357832bc4d5 100644 (file)
@@ -17,7 +17,7 @@ function shownews($input, $limit = 1000)
                print '<div>';
                printf(
                        '<h3><a href="/%s">%s <small class="date">%s</small></a></h3>',
-                       $article->link, $article->title, $article->date
+                       $article->link, $article->title, showdate($article->dateparts)
                );
                print $article->story;
                print '</div>';
@@ -74,4 +74,5 @@ if (@$Page->place['view'] === 'toc') {
 }
 ob_start();
 shownews($articles, @$Page->place['n'] ?: 5);
+$Page->raw = ob_get_clean();
 print $Page->render();