page: move showdate() into formatting include
[minimedit.git] / widget / nieuws.php
index 9cf427cf23bfad67d8b47d92f09dd97f6e627363..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>';