| @@ 3170-3176 (lines=7) @@ | ||
| 3167 | ||
| 3168 | if ((!$mimes || $stat['mime'] !== 'directory') && $this->stripos($name, $q) !== false) { |
|
| 3169 | $stat['path'] = $this->path($stat['hash']); |
|
| 3170 | if ($this->URL && !isset($stat['url'])) { |
|
| 3171 | $path = str_replace($this->separator, '/', substr($p, strlen($this->root) + 1)); |
|
| 3172 | if ($this->encoding) { |
|
| 3173 | $path = str_replace('%2F', '/', rawurlencode($this->convEncIn($path, true))); |
|
| 3174 | } |
|
| 3175 | $stat['url'] = $this->URL . $path; |
|
| 3176 | } |
|
| 3177 | ||
| 3178 | $result[] = $stat; |
|
| 3179 | } |
|
| @@ 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 | } |
|