]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #3301 from annando/issue-3300
authorrabuzarus <rabuzarus@t-online.de>
Fri, 7 Apr 2017 21:48:32 +0000 (23:48 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2017 21:48:32 +0000 (23:48 +0200)
The temp path creation couldn't create a subdirectory with the hostname

boot.php

index 084bca112e80941cc84b9a25e4a5ca4835e592b2..1d8a9e7f76e85c2329693a8e0ca0c68c07d64612 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -2472,7 +2472,7 @@ function get_temppath() {
        // Check if it is usable
        if (($temppath != "") AND App::directory_usable($temppath)) {
                // To avoid any interferences with other systems we create our own directory
-               $new_temppath .= "/".$a->get_hostname();
+               $new_temppath = $temppath."/".$a->get_hostname();
                if (!is_dir($new_temppath)) {
                        /// @TODO There is a mkdir()+chmod() upwards, maybe generalize this (+ configurable) into a function/method?
                        mkdir($new_temppath);