| @@ 1038-1044 (lines=7) @@ | ||
| 1035 | ||
| 1036 | if ((!$mimes || $stat['mime'] !== 'directory')) { |
|
| 1037 | $stat['path'] = $this->path($stat['hash']); |
|
| 1038 | if ($this->URL && !isset($stat['url'])) { |
|
| 1039 | $path = str_replace(DIRECTORY_SEPARATOR, '/', substr($p, strlen($this->root) + 1)); |
|
| 1040 | if ($this->encoding) { |
|
| 1041 | $path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true))); |
|
| 1042 | } |
|
| 1043 | $stat['url'] = $this->URL . $path; |
|
| 1044 | } |
|
| 1045 | ||
| 1046 | $result[] = $stat; |
|
| 1047 | } |
|
| @@ 3160-3166 (lines=7) @@ | ||
| 3157 | ||
| 3158 | if ((!$mimes || $stat['mime'] !== 'directory') && $this->stripos($name, $q) !== false) { |
|
| 3159 | $stat['path'] = $this->path($stat['hash']); |
|
| 3160 | if ($this->URL && !isset($stat['url'])) { |
|
| 3161 | $path = str_replace($this->separator, '/', substr($p, strlen($this->root) + 1)); |
|
| 3162 | if ($this->encoding) { |
|
| 3163 | $path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true))); |
|
| 3164 | } |
|
| 3165 | $stat['url'] = $this->URL . $path; |
|
| 3166 | } |
|
| 3167 | ||
| 3168 | $result[] = $stat; |
|
| 3169 | } |
|