Skip to content

Commit

Permalink
mount net volumes on load
Browse files Browse the repository at this point in the history
  • Loading branch information
dio-el-claire committed Apr 17, 2012
1 parent f53ce45 commit 227c69d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions php/elFinder.class.php
Expand Up @@ -70,7 +70,7 @@ class elFinder {
'info' => array('targets' => true),
'dim' => array('target' => true),
'resize' => array('target' => true, 'width' => true, 'height' => true, 'mode' => false, 'x' => false, 'y' => false, 'degree' => false),
'netmount' => array('protocol' => true, 'host' => true, 'path' => true, 'user' => true, 'pass' => false, 'options' => false)
'netmount' => array('protocol' => true, 'host' => true, 'path' => true, 'user' => true, 'pass' => false, 'alias' => false, 'options' => false)
);

/**
Expand Down Expand Up @@ -480,9 +480,11 @@ protected function netmount($args) {
$volume = new $class();

if ($volume->mount($options)) {
$netVolumes = $this->getNetVolumes();
$netVolumes = $this->getNetVolumes();
$netVolumes[] = $options;
$netVolumes = array_unique($netVolumes);
$this->saveNetVolumes($netVolumes);
return array('sync' => true);
} else {
return array('error' => $this->error(self::ERROR_NETMOUNT, $args['host'], implode(' ', $volume->error())));
}
Expand Down

0 comments on commit 227c69d

Please sign in to comment.