diff options
author | redmatrix <git@macgirvin.com> | 2016-03-31 16:06:03 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-03-31 16:06:03 -0700 |
commit | 9abd95fad3784a10fc48bc40f9b8a75d7d74edda (patch) | |
tree | 3cf2eec6a29f384b80a8c607aa97172b84e37e62 /mod/new_channel.php | |
parent | 256c228efd249f2ce93405db8e36f52030aa4876 (diff) | |
download | volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.gz volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.bz2 volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.zip |
static App
Diffstat (limited to 'mod/new_channel.php')
-rw-r--r-- | mod/new_channel.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/new_channel.php b/mod/new_channel.php index db5fff82a..f3b63b655 100644 --- a/mod/new_channel.php +++ b/mod/new_channel.php @@ -62,11 +62,11 @@ function new_channel_post(&$a) { $arr = $_POST; - $acc = $a->get_account(); + $acc = App::get_account(); $arr['account_id'] = get_account_id(); // prevent execution by delegated channels as well as those not logged in. - // get_account_id() returns the account_id from the session. But $a->account + // get_account_id() returns the account_id from the session. But App::$account // may point to the original authenticated account. if((! $acc) || ($acc['account_id'] != $arr['account_id'])) { @@ -94,7 +94,7 @@ function new_channel_post(&$a) { function new_channel_content(&$a) { - $acc = $a->get_account(); + $acc = App::get_account(); if((! $acc) || $acc['account_id'] != get_account_id()) { notice( t('Permission denied.') . EOL); @@ -122,7 +122,7 @@ function new_channel_content(&$a) { } $name = array('name', t('Name or caption'), ((x($_REQUEST,'name')) ? $_REQUEST['name'] : ''), t('Examples: "Bob Jameson", "Lisa and her Horses", "Soccer", "Aviation Group"')); - $nickhub = '@' . get_app()->get_hostname(); + $nickhub = '@' . App::get_hostname(); $nickname = array('nickname', t('Choose a short nickname'), ((x($_REQUEST,'nickname')) ? $_REQUEST['nickname'] : ''), sprintf( t('Your nickname will be used to create an easy to remember channel address e.g. nickname%s'), $nickhub)); $privacy_role = ((x($_REQUEST,'permissions_role')) ? $_REQUEST['permissions_role'] : "" ); $role = array('permissions_role' , t('Channel role and privacy'), ($privacy_role) ? $privacy_role : 'social', t('Select a channel role with your privacy requirements.') . ' <a href="help/roles" target="_blank">' . t('Read more about roles') . '</a>',get_roles()); |