Merge "Use svg for the logo if applicable"

isekai
jenkins-bot 3 years ago committed by Gerrit Code Review
commit 2c22fc0183

@ -531,11 +531,13 @@ class TimelessTemplate extends BaseTemplate {
} }
if ( $part !== 'text' ) { if ( $part !== 'text' ) {
$logoImage = $this->getLogoImage( $config->get( 'TimelessLogo' ) ); $logoImage = $this->getLogoImage( $config->get( 'TimelessLogo' ) );
if ( $logoImage === false && isset( $logos['icon'] ) ) { if ( $logoImage === false ) {
$logoSrc = $logos['icon']; $logoSrc = $logos['svg'] ?: $logos['icon'] ?: '';
$logoImage = Html::element( 'img', [ if ( $logoSrc !== '' ) {
'src' => $logoSrc, $logoImage = Html::element( 'img', [
] ); 'src' => $logoSrc,
] );
}
} }
$html .= Html::rawElement( $html .= Html::rawElement(

Loading…
Cancel
Save