apps/gallery/lib/Service/ConfigService.php
/**
	 * Adds the SVG media type if it's not already there
	 *
	 * If it's enabled, but doesn't work, an exception will be raised when trying to generate a
	 * preview. If it's disabled, we support it via the browser's native support
	 *
	 * @param string[] $supportedMimes
	 * @param bool $nativeSvgSupport
	 *
	 * @return string[]
	 */
Adds the SVG media type if it's not already there
If it's enabled, but doesn't work, an exception will be raised when trying to generate a
preview. If it's disabled, we support it via the browser's native support

@param string[] $supportedMimes
@param bool $nativeSvgSupport

@return string[]
Adds the SVG media type if it ' s not already there If it ' s enabled but doesn ' t work an exception will be raised when trying to generate a preview . If it ' s disabled we support it via the browser ' s native support @param string [] $supportedMimes @param bool $nativeSvgSupport @return string []
private function addSvgSupport($supportedMimes, $nativeSvgSupport) {
		if (!in_array('image/svg+xml', $supportedMimes) && $nativeSvgSupport) {
			$supportedMimes[] = 'image/svg+xml';
		}
		return $supportedMimes;
	}
private function addSvgSupport ( $ supportedMimes , $ nativeSvgSupport ) { if ( ! in_array ( 'image/svg+xml' , $ supportedMimes ) && $ nativeSvgSupport ) { $ supportedMimes [ ] = 'image/svg+xml' ; } return $ supportedMimes ; }
Adds the SVG media type if it's not already there
 If it's enabled, but doesn't work, an exception will be raised when trying to generate a
 preview.
Adds the SVG media type if it ' s not already there If it ' s enabled but doesn ' t work an exception will be raised when trying to generate a preview .