summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-12-06 17:21:38 -0500
committerEvan Prodromou <evan@status.net>2010-12-06 17:21:38 -0500
commitb35352790f17ddaca4debe767f22198cf0343cbc (patch)
treea410977653f46f11f86ae0383b464ec25841c8f1 /lib
parent49757c79ee732cce179fe5f2d542dc93005943b5 (diff)
parent76f3dc32e0e1aa933931b7cc59030ae20bb4f89b (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline
Diffstat (limited to 'lib')
-rw-r--r--lib/router.php3
-rw-r--r--lib/util.php4
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/router.php b/lib/router.php
index fb33125ab..e4d5e5286 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -777,8 +777,7 @@ class Router
if (common_config('singleuser', 'enabled')) {
- $user = User::singleUser();
- $nickname = $user->nickname;
+ $nickname = User::singleUserNickname();
foreach (array('subscriptions', 'subscribers',
'all', 'foaf', 'xrds',
diff --git a/lib/util.php b/lib/util.php
index d50fa2081..a1ea1f24d 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -975,9 +975,9 @@ function common_tag_link($tag)
$canonical = common_canonical_tag($tag);
if (common_config('singleuser', 'enabled')) {
// regular TagAction isn't set up in 1user mode
- $user = User::singleUser();
+ $nickname = User::singleUserNickname();
$url = common_local_url('showstream',
- array('nickname' => $user->nickname,
+ array('nickname' => $nickname,
'tag' => $canonical));
} else {
$url = common_local_url('tag', array('tag' => $canonical));