summaryrefslogtreecommitdiff
path: root/utils/modules/news.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modules/news.php')
-rw-r--r--utils/modules/news.php9
1 files changed, 6 insertions, 3 deletions
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 = "<div class=\"news_entry\">\n";
- $str .= " <div class=\"news_title\">" .
- htmlspecialchars_decode($this->title, ENT_QUOTES) . "</div>\n";
+ $str .= " <div class=\"news_title\">\n";
+ $str .= " <a href=\"?page=".$NEWS_PAGE."&amp;newsid=".$this->time."\">" .
+ htmlspecialchars_decode($this->title, ENT_QUOTES) . "</a>\n";
+ $str .= " </div>\n";
$str .= " <div class=\"news_time\">" .
date("D M jS Y G:i", $this->time) . "</div>\n";
$str .= " <div class=\"news_user\">By: " .