diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2014-12-27 14:06:09 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2014-12-27 14:06:09 +0100 |
commit | 40a327b68fe1bb37bbc2fc6bc1c6d761ee564898 (patch) | |
tree | b34f6132fd6a3060edc30d781bdd0f4e8fcd4f7c /mod/manage.php | |
parent | 6a679d26ce1c2947e49c74f3b6a98a7ad770b325 (diff) | |
download | volse-hubzilla-40a327b68fe1bb37bbc2fc6bc1c6d761ee564898.tar.gz volse-hubzilla-40a327b68fe1bb37bbc2fc6bc1c6d761ee564898.tar.bz2 volse-hubzilla-40a327b68fe1bb37bbc2fc6bc1c6d761ee564898.zip |
Allow quick access to mail and connections from Channel Manager
Diffstat (limited to 'mod/manage.php')
-rw-r--r-- | mod/manage.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/manage.php b/mod/manage.php index 28fa8e658..21327a120 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -28,8 +28,13 @@ function manage_content(&$a) { if($change_channel) { $r = change_channel($change_channel); - if($r && $r['channel_startpage']) - goaway(z_root() . '/' . $r['channel_startpage']); + if((argc() > 2) && !(argv(2) === 'default')) { + goaway(z_root() . '/' . implode('/',array_slice($a->argv,2))); // Go to whatever is after /manage/, but with the new channel + } + else { + if($r && $r['channel_startpage']) + goaway(z_root() . '/' . $r['channel_startpage']); // If nothing extra is specified, go to the default page + } goaway(z_root()); } |