| @@ 1042-1048 (lines=7) @@ | ||
| 1039 | ||
| 1040 | if ((!$mimes || $stat['mime'] !== 'directory')) { |
|
| 1041 | $stat['path'] = $this->path($stat['hash']); |
|
| 1042 | if ($this->URL && !isset($stat['url'])) { |
|
| 1043 | $path = str_replace(DIRECTORY_SEPARATOR, '/', substr($p, strlen($this->root) + 1)); |
|
| 1044 | if ($this->encoding) { |
|
| 1045 | $path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true))); |
|
| 1046 | } |
|
| 1047 | $stat['url'] = $this->URL . $path; |
|
| 1048 | } |
|
| 1049 | ||
| 1050 | $result[] = $stat; |
|
| 1051 | } |
|
| @@ 3184-3190 (lines=7) @@ | ||
| 3181 | ||
| 3182 | if ((!$mimes || $stat['mime'] !== 'directory') && $this->stripos($name, $q) !== false) { |
|
| 3183 | $stat['path'] = $this->path($stat['hash']); |
|
| 3184 | if ($this->URL && !isset($stat['url'])) { |
|
| 3185 | $path = str_replace($this->separator, '/', substr($p, strlen($this->root) + 1)); |
|
| 3186 | if ($this->encoding) { |
|
| 3187 | $path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true))); |
|
| 3188 | } |
|
| 3189 | $stat['url'] = $this->URL . $path; |
|
| 3190 | } |
|
| 3191 | ||
| 3192 | $result[] = $stat; |
|
| 3193 | } |
|