summaryrefslogtreecommitdiff
path: root/utils/modules/news.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-22 11:52:40 +0000
committerdeva <deva>2010-02-22 11:52:40 +0000
commit3a08ef9c94e6f5c92a7f3885fb316b53d13cfd5c (patch)
treee1ad608ffff5a7b0925b2aa1e6f76cff38e9826c /utils/modules/news.php
parent23024cd1346f75acf38e1cef9536ac824380e4ed (diff)
Change xml format to use character data as description instead of attributes.
Diffstat (limited to 'utils/modules/news.php')
-rw-r--r--utils/modules/news.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/modules/news.php b/utils/modules/news.php
index 57e9da7..0f4318c 100644
--- a/utils/modules/news.php
+++ b/utils/modules/news.php
@@ -56,9 +56,8 @@ class NewsEntry {
fwrite($fp, " time=\"" . $this->time . "\"\n");
fwrite($fp, " category=\"" . $this->category . "\"\n");
fwrite($fp, " userid=\"" . $this->userid . "\"\n");
- fwrite($fp, " icon=\"" . $this->icon . "\"\n");
- fwrite($fp, " description=\"" .
- htmlspecialchars($this->description, ENT_QUOTES, "UTF-8") . "\">\n");
+ fwrite($fp, " icon=\"" . $this->icon . "\">");
+ fwrite($fp, htmlspecialchars($this->description, ENT_QUOTES, "UTF-8"));
fwrite($fp, " </newsentry>\n");
}
@@ -366,7 +365,7 @@ class News {
$newsentry = new NewsEntry($param->getAttribute('title'),
$param->getAttribute('time'),
$param->getAttribute('category'),
- $param->getAttribute('description'),
+ $param->textContent,
$param->getAttribute('userid'),
$param->getAttribute('icon'));
$this->add($newsentry);