diff options
author | Evan Prodromou <evan@status.net> | 2010-04-09 09:55:06 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-04-09 09:55:06 -0400 |
commit | 674b0ddaace4a478092a89b9f63eedb3c4ad63e4 (patch) | |
tree | 822db4b22eabb631614094c4f69e6fc54414660c /lib/util.php | |
parent | 8ec7ebbeac157284cc87369da54f3a762c9c4c27 (diff) | |
parent | 05e373d29b91cf929d0ac2ad74a90dce264df022 (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 795997868..e37df6348 100644 --- a/lib/util.php +++ b/lib/util.php @@ -862,7 +862,14 @@ function common_xml_safe_str($str) function common_tag_link($tag) { $canonical = common_canonical_tag($tag); - $url = common_local_url('tag', array('tag' => $canonical)); + if (common_config('singleuser', 'enabled')) { + // regular TagAction isn't set up in 1user mode + $url = common_local_url('showstream', + array('nickname' => common_config('singleuser', 'nickname'), + 'tag' => $canonical)); + } else { + $url = common_local_url('tag', array('tag' => $canonical)); + } $xs = new XMLStringer(); $xs->elementStart('span', 'tag'); $xs->element('a', array('href' => $url, |