Use preg_replace instead of str_replace for replacing extension

Bug: T166684
Change-Id: I233be410486276f30b08034180eb54cb08e04076
This commit is contained in:
David Sn 2017-12-06 23:39:47 +00:00
parent e32d650042
commit 90f324a5b7
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
if ( isset( $customLogos['copyright-fallback'] ) ) {
$attributes['src'] = $customLogos['copyright-fallback'];
} else {
$attributes['src'] = str_replace( '.svg', '.png', $customLogos['copyright'] );
$attributes['src'] = preg_replace( '/\.svg$/i', '.png', $customLogos['copyright'] );
}
}
if ( isset( $customLogos['copyright-height'] ) ) {