diff options
author | Christian Weiske | 2011-06-27 23:03:31 +0200 |
---|---|---|
committer | Christian Weiske | 2011-06-27 23:03:31 +0200 |
commit | 90b6e65b1193b780c9c363fee3b1e92a5d0fba30 (patch) | |
tree | dfa326e2313172d151f4a1b07fd297d0f129c875 /www/tags.php | |
parent | 3d11286cbcc3cb35efe11f6e4a4ef5ac81620bda (diff) | |
download | scuttle-90b6e65b1193b780c9c363fee3b1e92a5d0fba30.tar.gz scuttle-90b6e65b1193b780c9c363fee3b1e92a5d0fba30.zip |
escape feed links properly and fix some bugs in the feed link parameters
Diffstat (limited to 'www/tags.php')
-rw-r--r-- | www/tags.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/www/tags.php b/www/tags.php index fca8a04..127f6c5 100644 --- a/www/tags.php +++ b/www/tags.php @@ -67,17 +67,26 @@ if ($usecache) { $tplVars['pagetitle'] = T_('Tags') .': '. $cat; $tplVars['loadjs'] = true; $tplVars['rsschannels'] = array( -array(filter($sitename .': Tags: '. $cat), createURL('rss', 'all/'. filter($cat, 'url')).'?sort='.getSortOrder()) + array( + sprintf(T_('%s: tagged with "%s"'), $sitename, $cat), + createURL('rss', 'all/' . filter($cat, 'url')) + . '?sort='.getSortOrder() + ) ); if ($userservice->isLoggedOn()) { - $currentUsername = $currentUser->getUsername(); if ($userservice->isPrivateKeyValid($currentUser->getPrivateKey())) { + $currentUsername = $currentUser->getUsername(); array_push( $tplVars['rsschannels'], array( - filter($sitename .': Tags: '. $cat . sprintf(T_(': (private) ')) . $currentUsername), - createURL('rss', filter($currentUsername, 'url') . '?sort='.getSortOrder().'&privateKey='.$currentUser->getPrivateKey()) + sprintf( + T_('%s: tagged with "%s" (+private %s)'), + $sitename, $cat, $currentUsername + ), + createURL('rss', filter($currentUsername, 'url')) + . '?sort=' . getSortOrder() + . '&privateKey=' . $currentUser->getPrivateKey() ) ); } |