From 24320ca8a7874ba8d121c727aa456287190b7643 Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 13 Feb 2010 15:30:10 +0000 Subject: Switch title and date tags. --- utils/modules/news.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'utils/modules/news.php') diff --git a/utils/modules/news.php b/utils/modules/news.php index 6cab087..57e9da7 100644 --- a/utils/modules/news.php +++ b/utils/modules/news.php @@ -29,15 +29,17 @@ class NewsEntry { $icons = new Icons($ICONS_DIR."/"); $icon = $icons->icons[$this->icon]; + $userid = $users->findUser($this->userid)->userid; + if(!$userid) $userid = "admin"; // Fallback from old data. + $str = "
\n"; + $str .= "
" . + date("D M jS Y G:i", $this->time) . "
\n"; $str .= " \n"; - $str .= "
" . - date("D M jS Y G:i", $this->time) . "
\n"; - $str .= "
By: " . - $users->findUser($this->userid)->userid . "
\n"; + $str .= "
By: " . $userid . "
\n"; $str .= "
\n"; if($this->icon) $str .= " \"icon\"prefix.$icon->file . "\"/>\n"; -- cgit v1.2.3