aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2016-01-25 07:33:18 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2016-01-25 07:33:18 +0100
commite4674142c6a205651d4bb207aa038e6d089da73f (patch)
tree81b433f9d6bb00691b3e8e48e39c09b5e0f7b755 /boot.php
parent089509ab876708ecebeec866e5957d979dd5bffa (diff)
parent9081ddb455993cef96e121cebb2f569ae63a50f3 (diff)
downloadvolse-hubzilla-e4674142c6a205651d4bb207aa038e6d089da73f.tar.gz
volse-hubzilla-e4674142c6a205651d4bb207aa038e6d089da73f.tar.bz2
volse-hubzilla-e4674142c6a205651d4bb207aa038e6d089da73f.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 9d80eedb4..b80b76a8a 100755
--- a/boot.php
+++ b/boot.php
@@ -1553,6 +1553,10 @@ function goaway($s) {
* @return int|bool account_id or false
*/
function get_account_id() {
+
+ if(intval($_SESSION['account_id']))
+ return intval($_SESSION['account_id']);
+
if(get_app()->account)
return intval(get_app()->account['account_id']);
@@ -1724,10 +1728,10 @@ function proc_run($cmd){
proc_close(proc_open($cmd, array(), $foo));
}
else {
- if(get_config('system','proc_run_use_exec'))
- exec($cmdline . ' > /dev/null &');
- else
+ if(get_config('system','use_proc_open'))
proc_close(proc_open($cmdline ." &", array(), $foo));
+ else
+ exec($cmdline . ' > /dev/null &');
}
}