From 74fd2508e253967dbff5e368dd19ae6f6e16fcbf Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 28 Jan 2010 16:18:33 +0000 Subject: Initial implementation of cross-linking. --- utils/modules/news.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'utils/modules/news.php') diff --git a/utils/modules/news.php b/utils/modules/news.php index 8c693c3..4fe8b44 100644 --- a/utils/modules/news.php +++ b/utils/modules/news.php @@ -20,7 +20,8 @@ class NewsEntry { public function show() { - global $users, $DATA_DIR, $ICONS_DIR; + global $users, $DATA_DIR, $ICONS_DIR, $NEWS_PAGE; + if(!isset($users)) $users = new Users($DATA_DIR . "/users.xml"); $content = Markdown(htmlspecialchars_decode($this->description)); @@ -29,8 +30,10 @@ class NewsEntry { $icon = $icons->icons[$this->icon]; $str = "
\n"; - $str .= "
" . - htmlspecialchars_decode($this->title, ENT_QUOTES) . "
\n"; + $str .= " \n"; $str .= "
" . date("D M jS Y G:i", $this->time) . "
\n"; $str .= "
By: " . -- cgit v1.2.3