aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-29 17:14:02 -0700
committerfriendica <info@friendica.com>2012-10-29 17:14:02 -0700
commite3c2e589794b13e23c1184deeba37e41dbc0144b (patch)
treec7f36aa88f89ffd7afbc97183d0cf3c20c637da8 /boot.php
parenta217c8de98329e97c3706ad4351deecd1c31fbc2 (diff)
downloadvolse-hubzilla-e3c2e589794b13e23c1184deeba37e41dbc0144b.tar.gz
volse-hubzilla-e3c2e589794b13e23c1184deeba37e41dbc0144b.tar.bz2
volse-hubzilla-e3c2e589794b13e23c1184deeba37e41dbc0144b.zip
"profile url" e.g. the wall/stream is now "channel url". "Profile URL" goes to the profile details.
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/boot.php b/boot.php
index d7b51867f..c84924e32 100644
--- a/boot.php
+++ b/boot.php
@@ -528,7 +528,7 @@ if(! class_exists('App')) {
// unix style "homedir"
if(substr($this->cmd,0,1) === '~')
- $this->cmd = 'profile/' . substr($this->cmd,1);
+ $this->cmd = 'channel/' . substr($this->cmd,1);
@@ -1772,27 +1772,28 @@ if(! function_exists('profile_tabs')){
if(x($_GET,'tab'))
$tab = notags(trim($_GET['tab']));
- $url = $a->get_baseurl() . '/profile/' . $nickname;
+ $url = $a->get_baseurl() . '/channel/' . $nickname;
+ $pr = $a->get_baseurl() . '/profile/' . $nickname;
$tabs = array(
array(
'label'=>t('Status'),
'url' => $url,
- 'sel' => ((!isset($tab)&&$a->argv[0]=='profile')?'active':''),
+ 'sel' => ((argv(0)=='channel')?'active':''),
'title' => t('Status Messages and Posts'),
'id' => 'status-tab',
),
array(
'label' => t('Profile'),
- 'url' => $url.'?tab=profile',
- 'sel' => ((isset($tab) && $tab=='profile')?'active':''),
+ 'url' => $pr,
+ 'sel' => ((argv(0)=='profile')?'active':''),
'title' => t('Profile Details'),
'id' => 'profile-tab',
),
array(
'label' => t('Photos'),
'url' => $a->get_baseurl() . '/photos/' . $nickname,
- 'sel' => ((!isset($tab)&&$a->argv[0]=='photos')?'active':''),
+ 'sel' => ((argv(0)=='photos')?'active':''),
'title' => t('Photo Albums'),
'id' => 'photo-tab',
),
@@ -1802,7 +1803,7 @@ if(! function_exists('profile_tabs')){
$tabs[] = array(
'label' => t('Events'),
'url' => $a->get_baseurl() . '/events',
- 'sel' =>((!isset($tab)&&$a->argv[0]=='events')?'active':''),
+ 'sel' =>((argv(0)=='events')?'active':''),
'title' => t('Events and Calendar'),
'id' => 'events-tab',
);
@@ -1836,7 +1837,7 @@ function zrl_init(&$a) {
function zrl($s,$force = false) {
if(! strlen($s))
return $s;
- if((! strpos($s,'/profile/')) && (! $force))
+ if((! strpos($s,'/channel/')) && (! $force))
return $s;
if($force && substr($s,-1,1) !== '/')
$s = $s . '/';