aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-18 19:10:56 -0800
committerfriendica <info@friendica.com>2012-12-18 19:10:56 -0800
commit44e70bdca367344c441b1e26e790ac0465953734 (patch)
tree8dcee9d777dd4ed6fd11264d6dcb48ad53d78ae0 /mod/settings.php
parente9c87a69ce1a78e0790241467961bfab465b3358 (diff)
downloadvolse-hubzilla-44e70bdca367344c441b1e26e790ac0465953734.tar.gz
volse-hubzilla-44e70bdca367344c441b1e26e790ac0465953734.tar.bz2
volse-hubzilla-44e70bdca367344c441b1e26e790ac0465953734.zip
send stuff to zothub as a fallback directory master for now
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 465b07f09..060258058 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -339,8 +339,7 @@ function settings_post(&$a) {
$arr['channel_w_mail'] = (($_POST['post_mail']) ? $_POST['post_mail'] : 0);
$arr['channel_w_photos'] = (($_POST['post_photos']) ? $_POST['post_photos'] : 0);
$arr['channel_w_chat'] = (($_POST['chat']) ? $_POST['chat'] : 0);
-
-
+ $arr['channel_a_delegate'] = (($_POST['delegate']) ? $_POST['delegate'] : 0);
$notify = 0;
@@ -438,7 +437,7 @@ function settings_post(&$a) {
);
*/
- $r = q("update channel set channel_r_stream = %d, channel_r_profile = %d, channel_r_photos = %d, channel_r_abook = %d, channel_w_stream = %d, channel_w_wall = %d, channel_w_tagwall = %d, channel_w_comment = %d, channel_w_mail = %d, channel_w_photos = %d, channel_w_chat = %d where channel_id = %d limit 1",
+ $r = q("update channel set channel_r_stream = %d, channel_r_profile = %d, channel_r_photos = %d, channel_r_abook = %d, channel_w_stream = %d, channel_w_wall = %d, channel_w_tagwall = %d, channel_w_comment = %d, channel_w_mail = %d, channel_w_photos = %d, channel_w_chat = %d, channel_a_delegate = %d where channel_id = %d limit 1",
intval($arr['channel_r_stream']),
intval($arr['channel_r_profile']),
intval($arr['channel_r_photos']),
@@ -450,6 +449,7 @@ function settings_post(&$a) {
intval($arr['channel_w_mail']),
intval($arr['channel_w_photos']),
intval($arr['channel_w_chat']),
+ intval($arr['channel_a_delegate']),
intval(local_user())
);
@@ -480,13 +480,15 @@ function settings_post(&$a) {
// );
// }
- if(($old_visibility != $net_publish) || ($page_flags != $old_page_flags)) {
+// if(($old_visibility != $net_publish) || ($page_flags != $old_page_flags)) {
// Update global directory in background
$url = $_SESSION['my_url'];
// if($url && strlen(get_config('system','directory_submit_url')))
-// proc_run('php',"include/directory.php","$url");
- }
+
+ proc_run('php','include/directory.php',local_user());
+
+// }
//$_SESSION['theme'] = $theme;
if($email_changed && $a->config['register_policy'] == REGISTER_VERIFY) {