Ver código fonte

Allow setting favicon with a .ico file

Signed-off-by: Gary Kim <gary@garykim.dev>
tags/v21.0.0beta1
Gary Kim 5 anos atrás
pai
commit
dfa17e9174
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      apps/theming/lib/ImageManager.php

+ 5
- 0
apps/theming/lib/ImageManager.php Ver arquivo

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

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

return $supportedFormats;
}


Carregando…
Cancelar
Salvar