aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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
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')
-rw-r--r--mod/manage.php2
-rw-r--r--mod/new_channel.php (renamed from mod/zchannel.php)8
-rw-r--r--mod/register.php2
-rw-r--r--mod/settings.php18
4 files changed, 15 insertions, 15 deletions
diff --git a/mod/manage.php b/mod/manage.php
index 557a19375..57d33d086 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -35,7 +35,7 @@ function manage_content(&$a) {
}
$links = array(
- array( 'zchannel', t('Create a new channel'), t('New Channel'))
+ array( 'new_channel', t('Create a new channel'), t('New Channel'))
);
diff --git a/mod/zchannel.php b/mod/new_channel.php
index eca22b0a9..e815b2a73 100644
--- a/mod/zchannel.php
+++ b/mod/new_channel.php
@@ -2,7 +2,7 @@
require_once('include/identity.php');
-function zchannel_init(&$a) {
+function new_channel_init(&$a) {
$cmd = ((argc() > 1) ? argv(1) : '');
@@ -57,7 +57,7 @@ function zchannel_init(&$a) {
}
-function zchannel_post(&$a) {
+function new_channel_post(&$a) {
$arr = $_POST;
@@ -90,7 +90,7 @@ function zchannel_post(&$a) {
-function zchannel_content(&$a) {
+function new_channel_content(&$a) {
if(! get_account_id()) {
notice( t('Permission denied.') . EOL);
@@ -101,7 +101,7 @@ function zchannel_content(&$a) {
$nickname = ((x($_REQUEST,'nickname')) ? $_REQUEST['nickname'] : "" );
- $o = replace_macros(get_markup_template('zchannel.tpl'), array(
+ $o = replace_macros(get_markup_template('new_channel.tpl'), array(
'$title' => t('Add a Channel'),
'$desc' => t('A channel is your own collection of related web pages. A channel can be used to hold social network profiles, blogs, conversation groups and forums, celebrity pages, and much more. You may create as many channels as your service provider allows.'),
diff --git a/mod/register.php b/mod/register.php
index 6326c8238..dbf8d25b7 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -105,7 +105,7 @@ function register_post(&$a) {
authenticate_success($result['account'],true,false,true);
if(! strlen($next_page = get_config('system','workflow_register_next')))
- $next_page = 'zchannel';
+ $next_page = 'new_channel';
$_SESSION['workflow'] = true;
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 );