| @@ 502-508 (lines=7) @@ | ||
| 499 | // set thumbnails path |
|
| 500 | $path = $this->options['tmbPath']; |
|
| 501 | if ($path) { |
|
| 502 | if (!file_exists($path)) { |
|
| 503 | if (@mkdir($path)) { |
|
| 504 | chmod($path, $this->options['tmbPathMode']); |
|
| 505 | } else { |
|
| 506 | $path = ''; |
|
| 507 | } |
|
| 508 | } |
|
| 509 | ||
| 510 | if (is_dir($path) && is_readable($path)) { |
|
| 511 | $this->tmbPath = $path; |
|
| @@ 138-142 (lines=5) @@ | ||
| 135 | parent::configure(); |
|
| 136 | ||
| 137 | if (($tmp = $this->options['tmpPath'])) { |
|
| 138 | if (!file_exists($tmp)) { |
|
| 139 | if (@mkdir($tmp)) { |
|
| 140 | @chmod($tmp, $this->options['tmbPathMode']); |
|
| 141 | } |
|
| 142 | } |
|
| 143 | ||
| 144 | $this->tmpPath = is_dir($tmp) && is_writable($tmp) ? $tmp : false; |
|
| 145 | } |
|