aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-31 17:02:47 -0800
committerfriendica <info@friendica.com>2013-01-31 17:02:47 -0800
commit808de7b447c5b5b06a1b314713b7473b3ea0a02f (patch)
treeadec18145cb63b1fa6cac00c3eb9b8b55cd39eae
parent24cd0d98a77d52485925d111c5dee3654d9a7578 (diff)
downloadvolse-hubzilla-808de7b447c5b5b06a1b314713b7473b3ea0a02f.tar.gz
volse-hubzilla-808de7b447c5b5b06a1b314713b7473b3ea0a02f.tar.bz2
volse-hubzilla-808de7b447c5b5b06a1b314713b7473b3ea0a02f.zip
expire setting
-rw-r--r--mod/settings.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 533800784..7d8a3c604 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -502,7 +502,8 @@ 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, channel_a_delegate = %d, channel_r_storage = %d, channel_w_storage = %d, channel_r_pages = %d, channel_w_pages = %d where channel_id = %d limit 1",
+ $r = q("update channel set channel_expire_days = %d, 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, channel_r_storage = %d, channel_w_storage = %d, channel_r_pages = %d, channel_w_pages = %d where channel_id = %d limit 1",
+ intval($expire),
intval($arr['channel_r_stream']),
intval($arr['channel_r_profile']),
intval($arr['channel_r_photos']),
@@ -902,7 +903,7 @@ function settings_content(&$a) {
$defloc = $channel['channel_location'];
$maxreq = $channel['channel_max_friend_req'];
- $expire = get_pconfig(local_user(),'expire','content_expire_days');
+ $expire = $channel['channel_expire_days'];
$blockwall = $a->user['blockwall'];
$blocktags = $a->user['blocktags'];