summaryrefslogtreecommitdiff
path: root/lib/profileaction.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-18 17:18:57 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-18 17:18:57 -0400
commit0271859c2425daff6fbaeac74aee6d6a9fcdce16 (patch)
treea93565653ec11237b71a2bcf87d6fbe2fcbcb9f8 /lib/profileaction.php
parent5897dfa4c37d6a44bcde5dc7569c8b0d30f21b84 (diff)
Added personal tag page: http://example.com/MY_NICK/tag/A_TAG
Diffstat (limited to 'lib/profileaction.php')
-rw-r--r--lib/profileaction.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/profileaction.php b/lib/profileaction.php
index 1f2e30994..a3437ff4d 100644
--- a/lib/profileaction.php
+++ b/lib/profileaction.php
@@ -49,16 +49,17 @@ require_once INSTALLDIR.'/lib/groupminilist.php';
class ProfileAction extends Action
{
- var $user = null;
- var $page = null;
+ var $user = null;
+ var $page = null;
var $profile = null;
+ var $tag = null;
function prepare($args)
{
parent::prepare($args);
$nickname_arg = $this->arg('nickname');
- $nickname = common_canonical_nickname($nickname_arg);
+ $nickname = common_canonical_nickname($nickname_arg);
// Permanent redirect on non-canonical nickname
@@ -85,10 +86,9 @@ class ProfileAction extends Action
return false;
}
+ $this->tag = $this->trimmed('tag');
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
-
common_set_returnto($this->selfUrl());
-
return true;
}
@@ -244,4 +244,5 @@ class ProfileAction extends Action
$this->elementEnd('div');
}
-} \ No newline at end of file
+}
+