aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-10-10 16:40:12 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-10-10 16:40:12 +0200
commit070e081ae9be8d43b92425cc9a9131d5977f8e00 (patch)
treeb6544bb852e16c66b4dc616899fd05c13bf9afbc /boot.php
parentf64e2d63b9ee66482b3461ecb6ee8f7776e23b87 (diff)
downloadvolse-hubzilla-070e081ae9be8d43b92425cc9a9131d5977f8e00.tar.gz
volse-hubzilla-070e081ae9be8d43b92425cc9a9131d5977f8e00.tar.bz2
volse-hubzilla-070e081ae9be8d43b92425cc9a9131d5977f8e00.zip
Fix url in profile tabs
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index d4e9ed0d6..e9c3f0e31 100644
--- a/boot.php
+++ b/boot.php
@@ -1162,14 +1162,16 @@ function load_contact_links($uid) {
}}
if(! function_exists('profile_tabs')){
-function profile_tabs($a, $is_owner=False){
+function profile_tabs($a, $is_owner=False, $nickname=Null){
//echo "<pre>"; var_dump($a->user); killme();
+ if (is_null($nickname))
+ $nickname = $a->user['nickname'];
if(x($_GET,'tab'))
$tab = notags(trim($_GET['tab']));
- $url = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
+ $url = $a->get_baseurl() . '/profile/' . $nickname;
$tabs = array(
array(
@@ -1184,7 +1186,7 @@ function profile_tabs($a, $is_owner=False){
),
array(
'label' => t('Photos'),
- 'url' => $a->get_baseurl() . '/photos/' . $a->user['nickname'],
+ 'url' => $a->get_baseurl() . '/photos/' . $nickname,
'sel' => ((!isset($tab)&&$a->argv[0]=='photos')?'active':''),
),
);