src build elFinder-2.1-674fb82

This commit is contained in:
nao-pon
2016-01-04 00:46:19 +09:00
parent f9c1d3510e
commit cec8a634ad
6 changed files with 159 additions and 147 deletions
@@ -99,6 +99,13 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
parent::configure();
// set $this->tmp by options['tmpPath']
if (!empty($this->options['tmpPath'])) {
if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'], 0755, true)) && is_writable($this->options['tmpPath'])) {
$this->tmp = $this->options['tmpPath'];
}
}
// if no thumbnails url - try detect it
if ($root['read'] && !$this->tmbURL && $this->URL) {
if (strpos($this->tmbPath, $this->root) === 0) {