aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-09-25 17:57:20 -0700
committerfriendica <info@friendica.com>2012-09-25 17:57:20 -0700
commitfbafd92f7f7b96b215b98f30de9a1ccbdb3479be (patch)
treef1f6739d513ac297fbd14162b8377cc4cf84c784 /mod/settings.php
parentdd5725c2725b742473ce285dce8573da37fb8053 (diff)
downloadvolse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.tar.gz
volse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.tar.bz2
volse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.zip
moving a lot of structure around. 'entity' is now 'channel'
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php33
1 files changed, 9 insertions, 24 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 922a90467..7cbe278a3 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -320,24 +320,6 @@ function settings_post(&$a) {
$str_group_deny = perms2str($_POST['group_deny']);
$str_contact_deny = perms2str($_POST['contact_deny']);
- $openidserver = $a->user['openidserver'];
- $openid = normalise_openid($openid);
-
- // If openid has changed or if there's an openid but no openidserver, try and discover it.
-
- if($openid != $a->user['openid'] || (strlen($openid) && (! strlen($openidserver)))) {
- $tmp_str = $openid;
- if(strlen($tmp_str) && validate_url($tmp_str)) {
- logger('updating openidserver');
- require_once('library/openid.php');
- $open_id_obj = new LightOpenID;
- $open_id_obj->identity = $openid;
- $openidserver = $open_id_obj->discover($open_id_obj->identity);
- }
- else
- $openidserver = '';
- }
-
set_pconfig(local_user(),'expire','items', $expire_items);
set_pconfig(local_user(),'expire','notes', $expire_notes);
set_pconfig(local_user(),'expire','starred', $expire_starred);
@@ -660,15 +642,18 @@ function settings_content(&$a) {
load_pconfig(local_user(),'expire');
- $username = $a->identity['entity_name'];
+ $channel = $a->get_channel();
+
+ $username = $channel['channel_name'];
$email = $a->account['account_email'];
- $nickname = $a->identity['entity_address'];
- $timezone = $a->identity['entity_timezone'];
- $notify = $a->identity['entity_notifyflags'];
- $defloc = $a->identity['entity_location'];
+ $nickname = $channel['channel_address'];
+ $timezone = $channel['channel_timezone'];
+ $notify = $channel['channel_notifyflags'];
+ $defloc = $channel['channel_location'];
- $maxreq = $a->identity['entity_max_friend_req'];
+ $maxreq = $channel['channel_max_friend_req'];
$expire = get_pconfig(local_user(),'expire','content_expire_days');
+
$blockwall = $a->user['blockwall'];
$blocktags = $a->user['blocktags'];
$unkmail = $a->user['unkmail'];