summaryrefslogtreecommitdiff
path: root/www/rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/rss.php')
-rw-r--r--www/rss.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/www/rss.php b/www/rss.php
index 6dcfb4c..50240e5 100644
--- a/www/rss.php
+++ b/www/rss.php
@@ -26,8 +26,14 @@ require_once 'www-header.php';
$bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark');
$cacheservice = SemanticScuttle_Service_Factory::get('Cache');
-if (isset($_SERVER['PATH_INFO']) && strlen($_SERVER['PATH_INFO']) >1) {
- list($url, $user, $cat) = explode('/', $_SERVER['PATH_INFO']);
+if (isset($_SERVER['PATH_INFO']) && strlen($_SERVER['PATH_INFO']) > 1) {
+ $parts = explode('/', $_SERVER['PATH_INFO']);
+ if (count($parts) == 3) {
+ list($url, $user, $cat) = $parts;
+ } else {
+ list($url, $user) = $parts;
+ $cat = null;
+ }
} else {
$url = '';
$user = '';
@@ -116,7 +122,7 @@ foreach ($bookmarks_tmp as $key => $row) {
'title' => $row['bTitle'],
'link' => $_link,
'description' => $row['bDescription'],
- 'creator' => $row['username'],
+ 'creator' => SemanticScuttle_Model_UserArray::getName($row),
'pubdate' => $_pubdate,
'tags' => $row['tags']
);