php/elFinderVolumeMySQL.class.php 1 location
|
@@ 139-143 (lines=5) @@
|
| 136 |
|
parent::configure(); |
| 137 |
|
|
| 138 |
|
if (($tmp = $this->options['tmpPath'])) { |
| 139 |
|
if (!file_exists($tmp)) { |
| 140 |
|
if (@mkdir($tmp)) { |
| 141 |
|
@chmod($tmp, $this->options['tmbPathMode']); |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
$this->tmpPath = is_dir($tmp) && is_writable($tmp) ? $tmp : false; |
| 146 |
|
} |
php/elFinderVolumeDriver.class.php 1 location
|
@@ 600-606 (lines=7) @@
|
| 597 |
|
// set thumbnails path |
| 598 |
|
$path = $this->options['tmbPath']; |
| 599 |
|
if ($path) { |
| 600 |
|
if (!file_exists($path)) { |
| 601 |
|
if (@mkdir($path)) { |
| 602 |
|
chmod($path, $this->options['tmbPathMode']); |
| 603 |
|
} else { |
| 604 |
|
$path = ''; |
| 605 |
|
} |
| 606 |
|
} |
| 607 |
|
|
| 608 |
|
if (is_dir($path) && is_readable($path)) { |
| 609 |
|
$this->tmbPath = $path; |