]> git.mjollnir.org Git - s9y.git/commitdiff
fix category url in backend
authorgarvinhicking <garvinhicking>
Sat, 25 Feb 2006 15:42:29 +0000 (15:42 +0000)
committergarvinhicking <garvinhicking>
Sat, 25 Feb 2006 15:42:29 +0000 (15:42 +0000)
include/admin/entries.inc.php

index 0a6f7a4751b59ce0f6d6ab7648f61eb626a6fb2e..88171a0bf019fb1c842e5d3bd3e9c188d10886f9 100644 (file)
@@ -245,7 +245,8 @@ function serendipity_drawList() {
                     echo ' ' . IN . ' ';
                     $cats = array();
                     foreach ($entry['categories'] as $cat) {
-                        $cats[] = '<a href="' . $serendipity['serendipityHTTPPath'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'categories/' . $cat['categoryid'] . '_' . serendipity_makeFilename($cat['category_name']) . '">' . $cat['category_name'] . '</a>';
+                        $caturl = serendipity_categoryURL($cat);
+                        $cats[] = '<a href="' . $caturl . '">' . $cat['category_name'] . '</a>';
                     }
                     echo implode(', ', $cats);
                 }