aboutsummaryrefslogtreecommitdiff
path: root/www/tags.php
diff options
context:
space:
mode:
authorMark Pemberton <mpemberton5@gmail.com>2011-05-17 00:24:43 -0400
committerMark Pemberton <mpemberton5@gmail.com>2011-05-17 00:24:43 -0400
commit920f7fc623ecad4f1338ab68326f2817c12c4610 (patch)
treed324bac21998f16d80eb7ff511561c415ba5b4e1 /www/tags.php
parent10214c43b51e99cc3f8f58a4c4e8893eb2480e62 (diff)
downloadsemanticscuttle-920f7fc623ecad4f1338ab68326f2817c12c4610.tar.gz
semanticscuttle-920f7fc623ecad4f1338ab68326f2817c12c4610.tar.bz2
Updated PrivateKey to include Tag searches
Diffstat (limited to 'www/tags.php')
-rw-r--r--www/tags.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/www/tags.php b/www/tags.php
index a4e6555..09725e4 100644
--- a/www/tags.php
+++ b/www/tags.php
@@ -67,9 +67,22 @@ if ($usecache) {
$tplVars['pagetitle'] = T_('Tags') .': '. $cat;
$tplVars['loadjs'] = true;
$tplVars['rsschannels'] = array(
-array(filter($sitename .': '. $pagetitle), createURL('rss', 'all/'. filter($cat, 'url')).'?sort='.getSortOrder())
+array(filter($sitename .': Tags: '. $cat), createURL('rss', 'all/'. filter($cat, 'url')).'?sort='.getSortOrder())
);
+if ($userservice->isLoggedOn()) {
+ $currentUsername = $currentUser->getUsername();
+ if ($userservice->isPrivateKeyValid($currentUser->getPrivateKey())) {
+ array_push(
+ $tplVars['rsschannels'],
+ array(
+ filter($sitename .': Tags: '. $cat . sprintf(T_(': (private) ')) . $currentUsername),
+ createURL('rss', filter($currentUsername, 'url') . '?sort='.getSortOrder().'&amp;privatekey='.$currentUser->getPrivateKey())
+ )
+ );
+ }
+}
+
// Pagination
$perpage = getPerPageCount($currentUser);
if (intval(GET_PAGE) > 1) {