Browse Source

Allow setting favicon with a .ico file

Signed-off-by: Gary Kim <gary@garykim.dev>
tags/v21.0.0beta1
Gary Kim 5 years ago
parent
commit
dfa17e9174
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      apps/theming/lib/ImageManager.php

+ 5
- 0
apps/theming/lib/ImageManager.php View File

@@ -260,6 +260,11 @@ class ImageManager {
$supportedFormats[] = 'image/svg';
}

if ($key === 'favicon') {
$supportedFormats[] = 'image/x-icon';
$supportedFormats[] = 'image/vnd.microsoft.icon';
}

return $supportedFormats;
}


Loading…
Cancel
Save