Used correct function to create tmpdir, fixes #846 @0h5m

Thanks to sreimers.
This commit is contained in:
Andreas Burchert (scarya)
2011-08-07 15:49:12 +02:00
parent 8609b2394b
commit 79f5ff4d35

View File

@@ -105,7 +105,7 @@ class phpinterface_fpm
$tmpdir = makeCorrectDir($this->_settings['phpfpm']['tmpdir'] . '/' . $this->_domain['loginname'] . '/'); $tmpdir = makeCorrectDir($this->_settings['phpfpm']['tmpdir'] . '/' . $this->_domain['loginname'] . '/');
if(!is_dir($tmpdir)) if(!is_dir($tmpdir))
{ {
safe_exec('mkdir -p ' . escapeshellarg($tmpdir)); $this->getTempDir();
} }
//$slowlog = makeCorrectFile($this->_settings['system']['logfiles_directory'] . $this->_domain['loginname'] . '/php-fpm_slow.log'); //$slowlog = makeCorrectFile($this->_settings['system']['logfiles_directory'] . $this->_domain['loginname'] . '/php-fpm_slow.log');
@@ -173,9 +173,9 @@ class phpinterface_fpm
/** /**
* fpm-config file * fpm-config file
* *
* @param boolean $createifnotexists create the directory if it does not exist * @param boolean $createifnotexists create the directory if it does not exist
* *
* @return string the full path to the file * @return string the full path to the file
*/ */
public function getConfigFile($createifnotexists = true) public function getConfigFile($createifnotexists = true)
@@ -193,9 +193,9 @@ class phpinterface_fpm
/** /**
* return path of fpm-socket file * return path of fpm-socket file
* *
* @param boolean $createifnotexists create the directory if it does not exist * @param boolean $createifnotexists create the directory if it does not exist
* *
* @return string the full path to the socket * @return string the full path to the socket
*/ */
public function getSocketFile($createifnotexists = true) public function getSocketFile($createifnotexists = true)
@@ -214,9 +214,9 @@ class phpinterface_fpm
/** /**
* fpm-temp directory * fpm-temp directory
* *
* @param boolean $createifnotexists create the directory if it does not exist * @param boolean $createifnotexists create the directory if it does not exist
* *
* @return string the directory * @return string the directory
*/ */
public function getTempDir($createifnotexists = true) public function getTempDir($createifnotexists = true)