]> source.dussan.org Git - nextcloud-server.git/commit
prefer logo png from theme over svg from core
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 23 Oct 2013 14:44:56 +0000 (16:44 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 23 Oct 2013 14:44:56 +0000 (16:44 +0200)
commit0bf034da968d63b90e6fce4796d4a9a1b04eed23
tree035df38cdbe547254eeb155eeb97a8cdca040a26
parent2221aa9ca42bcfdf9b00e46924947238daf75047
prefer logo png from theme over svg from core
The logo images are specified in the php templates with eg `image_path('', 'logo-wide.svg')`. If that file exists the correct path will be served to the client in the html template. Then the `SVGSupport()` is checked in https://github.com/owncloud/core/blob/master/core/js/js.js#L701 which will replace `svg` with `png` in img tags and css background definitions.

fixes #5074
partially solves #5421, but not when an svg has been specified in css and is then 'fixed' by js to point to a png which does not exist in the theme but is then might be resolved to an image from core .... well theoretical problem ... might not even be a problem

@karlitschek @jancborchardt please review
lib/private/urlgenerator.php