src build elFinder-2.1-4afd557

This commit is contained in:
nao-pon
2016-07-14 10:30:05 +09:00
parent 6d394e2ad1
commit a3df6c5885
5 changed files with 12 additions and 14 deletions
+6 -8
View File
@@ -1278,18 +1278,16 @@ abstract class elFinderVolumeDriver {
}
/**
* Return path of target hash
* Return decoded path of target hash
* This method do not check the stat of target
* Use method `realpath()` to do check of the stat of target
*
* @param string $hash
* @author Naoki Sawada
* @return string | false
* @return string
*/
public function getPath($hash) {
$path = $this->decode($hash);
if ($this->stat($path)) {
return $path;
}
return false;
return $this->decode($hash);
}
/**
@@ -1435,7 +1433,7 @@ abstract class elFinderVolumeDriver {
* Return file real path if file exists
*
* @param string $hash file hash
* @return string
* @return string | false
* @author Dmitry (dio) Levashov
**/
public function realpath($hash) {