summaryrefslogtreecommitdiff
path: root/htdocs/categories.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/categories.php')
-rw-r--r--htdocs/categories.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/htdocs/categories.php b/htdocs/categories.php
index e4c1f37..a3e8ba2 100644
--- a/htdocs/categories.php
+++ b/htdocs/categories.php
@@ -36,10 +36,13 @@ function listCategories() {
echo "<h2>Categories</h2>";
$cats = Category::getCategories();
- foreach ($cats as $short => $name) {
+ echo "<dl>";
+ foreach ($cats as $short => $cat) {
$url = $GLOBALS['CONFIG']['urlroot'] . "/categories/$short";
- echo "<p><a href=\"$url\">$name</a></p>";
+ echo "<dt><a href=\"$url\">". $cat->getName() ."</a></dt>";
+ echo "<dd>". $cat->getDescription() ."</dd>";
}
+ echo "</dl>";
}
function displayEvents($category) {