aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-22 14:37:08 -0700
committerfriendica <info@friendica.com>2013-08-22 14:37:08 -0700
commitc102a4e428dd827667a3d8194523e94358cde5a5 (patch)
tree1d1be88e9304638bad8a728a8cf84ec8bf41c596 /mod
parent99a9aee03e55af84f6963bbdbe3e365a7721e93d (diff)
downloadvolse-hubzilla-c102a4e428dd827667a3d8194523e94358cde5a5.tar.gz
volse-hubzilla-c102a4e428dd827667a3d8194523e94358cde5a5.tar.bz2
volse-hubzilla-c102a4e428dd827667a3d8194523e94358cde5a5.zip
perform a refresh_all operation after changing premium status so that everybody will catch it quickly and not in a day or two.
Diffstat (limited to 'mod')
-rw-r--r--mod/connect.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/connect.php b/mod/connect.php
index 6bf53eb2b..5731d050d 100644
--- a/mod/connect.php
+++ b/mod/connect.php
@@ -38,12 +38,14 @@ function connect_post(&$a) {
$text = escape_tags($_POST['text']);
$channel = $a->get_channel();
- if(($channel['channel_pageflags'] & PAGE_PREMIUM) != $premium)
+ if(($channel['channel_pageflags'] & PAGE_PREMIUM) != $premium) {
$r = q("update channel set channel_pageflags = channel_pageflags ^ %d where channel_id = %d limit 1",
intval(PAGE_PREMIUM),
intval(local_user())
);
- set_pconfig($a->profile['profile_uid'],'system','selltext',$text);
+ proc_exec('php','include/notifier.php','refresh_all',$channel['channel_id']);
+ }
+ set_pconfig($channel['channel_id'],'system','selltext',$text);
goaway(z_root() . '/' . $a->query_string);
}