From 0744219490a8fe91a53014a6e30ed72eebd3f656 Mon Sep 17 00:00:00 2001 From: nao-pon Date: Fri, 27 Apr 2012 22:49:19 +0900 Subject: [PATCH] show "Dropbox+[path]" if alias has empty value --- php/elFinderVolumeDropbox.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/elFinderVolumeDropbox.class.php b/php/elFinderVolumeDropbox.class.php index fc4e1cbe4..12f29c242 100644 --- a/php/elFinderVolumeDropbox.class.php +++ b/php/elFinderVolumeDropbox.class.php @@ -289,7 +289,7 @@ class elFinderVolumeDropbox extends elFinderVolumeDriver { $this->root = $this->options['path'] = $this->_normpath($this->options['path']); if (empty($this->options['alias'])) { - $this->options['alias'] = 'Dropbox.com'; + $this->options['alias'] = ($this->options['path'] === '/')? 'Dropbox.com' : 'Dropbox'.$this->options['path']; } $this->rootName = $this->options['alias'];