aboutsummaryrefslogtreecommitdiffstats
path: root/include/session.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-25 00:36:35 -0800
committerredmatrix <git@macgirvin.com>2016-02-25 00:36:35 -0800
commitebfa1a12b9cc3d939ed49a7f66e5687267a409d3 (patch)
tree037b47bc72ae0f4b6b195266da39bb1870481cfd /include/session.php
parent43521bb10b71752b5b3fd953056966ba30df50b6 (diff)
downloadvolse-hubzilla-ebfa1a12b9cc3d939ed49a7f66e5687267a409d3.tar.gz
volse-hubzilla-ebfa1a12b9cc3d939ed49a7f66e5687267a409d3.tar.bz2
volse-hubzilla-ebfa1a12b9cc3d939ed49a7f66e5687267a409d3.zip
when creating an event from a post in our stream, if the original post was private, set the event permissions to "just me". If it was a public event, set the event permissions to the channel default permissions.
Diffstat (limited to 'include/session.php')
-rw-r--r--include/session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/session.php b/include/session.php
index 182805980..43bba528b 100644
--- a/include/session.php
+++ b/include/session.php
@@ -124,12 +124,12 @@ session_set_save_handler(
// Force cookies to be secure (https only) if this site is SSL enabled. Must be done before session_start().
- if(intval($a->config['system']['ssl_cookie_protection'])) {
+ if(intval(get_app()->config['system']['ssl_cookie_protection'])) {
$arr = session_get_cookie_params();
session_set_cookie_params(
((isset($arr['lifetime'])) ? $arr['lifetime'] : 0),
((isset($arr['path'])) ? $arr['path'] : '/'),
- ((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()),
+ ((isset($arr['domain'])) ? $arr['domain'] : get_app()->get_hostname()),
((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? true : false),
((isset($arr['httponly'])) ? $arr['httponly'] : true));
} \ No newline at end of file