$query = "SELECT $distinct
co.id,
- co.entry_id, co.timestamp, co.title, co.email, co.url, co.ip, co.body, co.type, co.subscribed,
+ co.entry_id, co.timestamp, co.title AS ctitle, co.email, co.url, co.ip, co.body, co.type, co.subscribed,
co.author,
e.title,
e.id AS entryid,
$_GET['type'] = 'content';
}
-if (!isset($_GET['nocache'])) {
- switch ($_GET['type']) {
- case 'comments':
- $latest_entry = serendipity_fetchComments(isset($_GET['cid']) ? $_GET['cid'] : null, 1, 'desc');
- break;
- case 'content':
- default:
- $latest_entry = serendipity_fetchEntries(null, false, 1, false, false, 'last_modified DESC', '', false, true);
+switch ($_GET['type']) {
+ case 'comments':
+ $latest_entry = serendipity_fetchComments(isset($_GET['cid']) ? $_GET['cid'] : null, 1, 'desc');
break;
- }
+ case 'content':
+ default:
+ $latest_entry = serendipity_fetchEntries(null, false, 1, false, false, 'last_modified DESC', '', false, true);
+ break;
+}
+if (!isset($_GET['nocache'])) {
/*
* Caching logic - Do not send feed if nothing has changed
* Implementation inspired by Simon Willison [http://simon.incutio.com/archive/2003/04/23/conditionalGet], Thiemo Maettig
switch ($_GET['type']) {
case 'comments':
$entries = serendipity_fetchComments(isset($_GET['cid']) ? $_GET['cid'] : null, $serendipity['RSSfetchLimit'], 'desc');
- $title = $title . ' ' . COMMENTS;
- $description = COMMENTS_FROM . ' ' . $description;
+ $description = $title . ' - ' . $description;
+ if (isset($_GET['cid'])) {
+ $title = $title . ' - ' . COMMENTS_FROM . ' "' . $latest_entry[0]['title'] . '"';
+ } else {
+ $title = $title . ' - ' . COMMENTS;
+ }
$comments = TRUE;
break;
case 'content':