|
@@ 298-301 (lines=4) @@
|
| 295 |
|
$icon = str_replace('\\', '-', $icon); |
| 296 |
|
|
| 297 |
|
// Is it a dir? |
| 298 |
|
if ($mimetype === 'dir') { |
| 299 |
|
$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder.svg'); |
| 300 |
|
return $this->mimetypeIcons[$mimetype]; |
| 301 |
|
} |
| 302 |
|
if ($mimetype === 'dir-shared') { |
| 303 |
|
$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder-shared.svg'); |
| 304 |
|
return $this->mimetypeIcons[$mimetype]; |
|
@@ 302-305 (lines=4) @@
|
| 299 |
|
$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder.svg'); |
| 300 |
|
return $this->mimetypeIcons[$mimetype]; |
| 301 |
|
} |
| 302 |
|
if ($mimetype === 'dir-shared') { |
| 303 |
|
$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder-shared.svg'); |
| 304 |
|
return $this->mimetypeIcons[$mimetype]; |
| 305 |
|
} |
| 306 |
|
if ($mimetype === 'dir-external') { |
| 307 |
|
$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder-external.svg'); |
| 308 |
|
return $this->mimetypeIcons[$mimetype]; |
|
@@ 306-309 (lines=4) @@
|
| 303 |
|
$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder-shared.svg'); |
| 304 |
|
return $this->mimetypeIcons[$mimetype]; |
| 305 |
|
} |
| 306 |
|
if ($mimetype === 'dir-external') { |
| 307 |
|
$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder-external.svg'); |
| 308 |
|
return $this->mimetypeIcons[$mimetype]; |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
// Icon exists? |
| 312 |
|
try { |