Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv2103
Modified Files:
serendipity_functions.inc.php
Log Message:
Added link to corresponding category for an entry
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- serendipity_functions.inc.php 18 Sep 2003 12:58:14 -0000 1.152
+++ serendipity_functions.inc.php 18 Sep 2003 14:20:57 -0000 1.153
@@ -482,7 +482,8 @@
e.*,
a.username,
a.email,
- c.category_name
+ c.category_name,
+ c.categoryid
FROM
({$serendipity['dbPrefix']}entries AS e
LEFT JOIN {$serendipity['dbPrefix']}category c
@@ -513,6 +514,7 @@
$querystring = "SELECT
*,
c.category_name,
+ c.categoryid,
a.username,
a.email
FROM
@@ -708,7 +710,7 @@
<div class='serendipity_entryFooter'>
<?php
- echo ' ' . POSTED_BY . ' ' . htmlentities($entry['username']) . ($entry['category_name'] ? ' ' . IN . " ${entry['category_name']} " : ' ') . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a>'. "\n";
+ echo ' ' . POSTED_BY . ' ' . htmlentities($entry['username']) . ($entry['category_name'] ? ' ' . IN . ' <a href="' . $serendipity['serendipityHTTPPath'] . 'categories/' . $entry['categoryid'] . '_' . serendipity_makeFilename($entry['category_name']) . '">' . $entry['category_name'] . '</a> ' : ' ') . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a>'. "\n";
if (!isset($serendipity['GET']['id'])) {
$label = $entry['comments'] == 1 ? COMMENT : COMMENTS;
|