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' ) {
$logoImage = $this->getLogoImage( $config->get( 'TimelessLogo' ) );
if ( $logoImage === false && isset( $logos['icon'] ) ) {
$logoSrc = $logos['icon'];
$logoImage = Html::element( 'img', [
'src' => $logoSrc,
] );
if ( $logoImage === false ) {
$logoSrc = $logos['svg'] ?: $logos['icon'] ?: '';
if ( $logoSrc !== '' ) {
$logoImage = Html::element( 'img', [
'src' => $logoSrc,
] );
}
}
$html .= Html::rawElement(

Loading…
Cancel
Save