lib/elFinderVolumeDriver.class.php 1 location
|
@@ 925-927 (lines=3) @@
|
922 |
|
{ |
923 |
|
$this->options = array_merge($this->options, $opts); |
924 |
|
|
925 |
|
if (! isset($this->options['path']) || $this->options['path'] === '') { |
926 |
|
return $this->setError('Path undefined.'); |
927 |
|
} |
928 |
|
|
929 |
|
if (! $this->session) { |
930 |
|
return $this->setError('Session wrapper dose not set. Need to `$volume->setSession(elFinderSessionInterface);` before mount.'); |
lib/elFinderVolumeFTP.class.php 1 location
|
@@ 168-171 (lines=4) @@
|
165 |
|
**/ |
166 |
|
protected function init() |
167 |
|
{ |
168 |
|
if (! $this->options['host'] |
169 |
|
|| ! $this->options['port']) { |
170 |
|
return $this->setError('Required options undefined.'); |
171 |
|
} |
172 |
|
|
173 |
|
if (! $this->options['user']) { |
174 |
|
$this->options['user'] = 'anonymous'; |