summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-01-20 14:58:16 +0100
committerChristian Weiske <cweiske@cweiske.de>2012-01-20 14:58:16 +0100
commit87f495d31b8f40375a6a1bf05a6d2bc9860029c3 (patch)
tree62ada51a7ae19070a2203e8599bbd1e2a04a6587
parentcf80b6c5b8eef1761d1e9063e44b7449a63ad2d0 (diff)
downloadsemanticscuttle-87f495d31b8f40375a6a1bf05a6d2bc9860029c3.tar.gz
semanticscuttle-87f495d31b8f40375a6a1bf05a6d2bc9860029c3.tar.bz2
Part of bug #3463481: add guid to items
-rw-r--r--data/templates/default/rss.tpl.php1
-rw-r--r--www/rss.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/data/templates/default/rss.tpl.php b/data/templates/default/rss.tpl.php
index 6b489d5..fd5bdbf 100644
--- a/data/templates/default/rss.tpl.php
+++ b/data/templates/default/rss.tpl.php
@@ -17,6 +17,7 @@ echo '<' . '?xml version="1.0" encoding="utf-8" ?' . ">\n";
<item>
<title><?php echo htmlspecialchars($bookmark['title']); ?></title>
<link><?php echo htmlspecialchars($bookmark['link']); ?></link>
+ <guid><?php echo $bookmark['guid']; ?></guid>
<description><?php echo htmlspecialchars($bookmark['description']); ?></description>
<dc:creator><?php echo htmlspecialchars($bookmark['creator']); ?></dc:creator>
<pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
diff --git a/www/rss.php b/www/rss.php
index 46c0ffd..3628a2e 100644
--- a/www/rss.php
+++ b/www/rss.php
@@ -137,6 +137,7 @@ $bookmarks_tmp = filter($bookmarks['bookmarks']);
$bookmarks_tpl = array();
$latestdate = null;
+$guidBaseUrl = addProtocolToUrl(ROOT) . '#';
foreach ($bookmarks_tmp as $key => $row) {
$_link = $row['bAddress'];
// Redirection option
@@ -154,7 +155,8 @@ foreach ($bookmarks_tmp as $key => $row) {
'description' => $row['bDescription'],
'creator' => SemanticScuttle_Model_UserArray::getName($row),
'pubdate' => $_pubdate,
- 'tags' => $row['tags']
+ 'tags' => $row['tags'],
+ 'guid' => $guidBaseUrl . $row['bId'],
);
}
unset($bookmarks_tmp);