aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-01 23:48:27 -0800
committerfriendica <info@friendica.com>2015-01-01 23:48:27 -0800
commit8b844ed978d9d6b769e2c055b1e1ec042e51e152 (patch)
tree4bcd4fdc22ebe0370bf41655b37f7b98b85d1c33 /boot.php
parent82d0a4af452015e870bdcea56f1008ea22d066b3 (diff)
parentc7aa8bf1b4c2a7ca4d7bf1552aabcb0c0a54756e (diff)
downloadvolse-hubzilla-8b844ed978d9d6b769e2c055b1e1ec042e51e152.tar.gz
volse-hubzilla-8b844ed978d9d6b769e2c055b1e1ec042e51e152.tar.bz2
volse-hubzilla-8b844ed978d9d6b769e2c055b1e1ec042e51e152.zip
Merge branch 'master' into trinidad
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 28bf5517a..fe026d2e7 100755
--- a/boot.php
+++ b/boot.php
@@ -2184,3 +2184,19 @@ function get_poller_runtime() {
$t = get_config('system','lastpoll');
return relative_date($t);
}
+
+function z_get_upload_dir() {
+ $upload_dir = get_config('system','uploaddir');
+ if(! $upload_dir)
+ $upload_dir = ini_get('upload_tmp_dir');
+ if(! $upload_dir)
+ $upload_dir = sys_get_temp_dir();
+ return $upload_dir;
+}
+
+function z_get_temp_dir() {
+ $temp_dir = get_config('system','tempdir');
+ if(! $temp_dir)
+ $temp_dir = sys_get_temp_dir();
+ return $upload_dir;
+}