Use preg_replace instead of str_replace for replacing extension
Bug: T166684 Change-Id: I233be410486276f30b08034180eb54cb08e04076
This commit is contained in:
parent
e32d650042
commit
90f324a5b7
|
@ -56,7 +56,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
if ( isset( $customLogos['copyright-fallback'] ) ) {
|
if ( isset( $customLogos['copyright-fallback'] ) ) {
|
||||||
$attributes['src'] = $customLogos['copyright-fallback'];
|
$attributes['src'] = $customLogos['copyright-fallback'];
|
||||||
} else {
|
} else {
|
||||||
$attributes['src'] = str_replace( '.svg', '.png', $customLogos['copyright'] );
|
$attributes['src'] = preg_replace( '/\.svg$/i', '.png', $customLogos['copyright'] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( isset( $customLogos['copyright-height'] ) ) {
|
if ( isset( $customLogos['copyright-height'] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue