aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-29 21:59:49 -0700
committerfriendica <info@friendica.com>2012-10-29 21:59:49 -0700
commitdca20f42278e9d837d5cbfd130fc04ecaf09947d (patch)
treea7c0ce623821ca64b422ee734be27d3ecb15b119 /mod/settings.php
parentf608373d084eea8d34adc48ef50c7392903b51be (diff)
downloadvolse-hubzilla-dca20f42278e9d837d5cbfd130fc04ecaf09947d.tar.gz
volse-hubzilla-dca20f42278e9d837d5cbfd130fc04ecaf09947d.tar.bz2
volse-hubzilla-dca20f42278e9d837d5cbfd130fc04ecaf09947d.zip
zchannel rename to new_channel
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 430fc5187..a9f625056 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -16,6 +16,15 @@ function get_theme_config_file($theme){
function settings_init(&$a) {
+
+ // default is channel settings in the absence of other arguments
+
+ if(argc() == 1) {
+ $a->argc = 2;
+ $a->argv[] = 'channel';
+ }
+
+
$tabs = array(
array(
'label' => t('Account settings'),
@@ -83,10 +92,6 @@ function settings_post(&$a) {
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
return;
- if(argc() == 1) {
- $a->argc = 2;
- $a->argv[] = 'channel';
- }
if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) {
notice( t('Permission denied.') . EOL);
@@ -432,11 +437,6 @@ function settings_content(&$a) {
$o = '';
nav_set_selected('settings');
- if(argc() == 1) {
- $a->argc = 2;
- $a->argv[] = 'channel';
- }
-
if(! local_user()) {
notice( t('Permission denied.') . EOL );