|
@@ 532-534 (lines=3) @@
|
| 529 |
|
|
| 530 |
|
if (($dir = is_dir($path)) && $this->options['detectDirIcon']) { |
| 531 |
|
$favicon = $path.DIRECTORY_SEPARATOR.$this->options['detectDirIcon']; |
| 532 |
|
if ($this->URL && file_exists($favicon)) { |
| 533 |
|
$stat['icon'] = $this->URL.str_replace(DIRECTORY_SEPARATOR, '/', substr($favicon, strlen($this->root) + 1)); |
| 534 |
|
} |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
if (! isset($stat['mime'])) { |
|
@@ 755-757 (lines=3) @@
|
| 752 |
|
if (($dir = $file->isDir()) && $this->options['detectDirIcon']) { |
| 753 |
|
$path = $file->getPathname(); |
| 754 |
|
$favicon = $path.DIRECTORY_SEPARATOR.$this->options['detectDirIcon']; |
| 755 |
|
if ($this->URL && file_exists($favicon)) { |
| 756 |
|
$stat['icon'] = $this->URL.str_replace(DIRECTORY_SEPARATOR, '/', substr($favicon, strlen($this->root) + 1)); |
| 757 |
|
} |
| 758 |
|
} |
| 759 |
|
$stat['mime'] = $dir ? 'directory' : $this->mimetype($fpath); |
| 760 |
|
} |