[VD] main option commonTempPath to use

and fixes some notice errors
This commit is contained in:
nao-pon
2016-01-20 17:09:08 +09:00
parent 9b22635ec5
commit 516147caf6
5 changed files with 22 additions and 14 deletions
+3
View File
@@ -144,6 +144,9 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
$this->tmpPath = is_dir($tmp) && is_writable($tmp) ? $tmp : false;
}
if (!$this->tmpPath && ($tmp = elFinder::getStaticVar('commonTempPath'))) {
$this->tmpPath = $tmp;
}
if (!$this->tmpPath && $this->tmbPath && $this->tmbPathWritable) {
$this->tmpPath = $this->tmbPath;