From c7aa8bf1b4c2a7ca4d7bf1552aabcb0c0a54756e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 1 Jan 2015 23:47:14 -0800 Subject: syntax issues (with some php versions?), unchecked intval --- boot.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 4e266f4f1..f57a6701c 100755 --- a/boot.php +++ b/boot.php @@ -2183,3 +2183,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; +} \ No newline at end of file -- cgit v1.2.3 From 3e073f4b626ce5e12f3c9412afa5505ac26e5a9b Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 2 Jan 2015 23:07:37 -0800 Subject: no newline at end of file --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index f57a6701c..ab2d9671c 100755 --- a/boot.php +++ b/boot.php @@ -2198,4 +2198,4 @@ function z_get_temp_dir() { if(! $temp_dir) $temp_dir = sys_get_temp_dir(); return $upload_dir; -} \ No newline at end of file +} -- cgit v1.2.3