summaryrefslogtreecommitdiff
path: root/htdocs/src
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/src')
-rw-r--r--htdocs/src/Category.inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/htdocs/src/Category.inc.php b/htdocs/src/Category.inc.php
index edc0303..fdcd210 100644
--- a/htdocs/src/Category.inc.php
+++ b/htdocs/src/Category.inc.php
@@ -27,7 +27,8 @@ class Category {
$result = array();
foreach ($rows as $row) {
- $result[$row['shortname']] = $row['name'];
+ $cat = new Category($row);
+ $result[$row['shortname']] = $cat;
}
return $result;
@@ -80,6 +81,10 @@ class Category {
public function getShortname() {
return htmlspecialchars($this->info['shortname']);
}
+
+ public function getDescription() {
+ return htmlspecialchars($this->info['description']);
+ }
}
?>