SVG dispatch: allow passing ini colors without underscores

The surrounding underscores can be left out.
This commit is contained in:
Andreas Gohr 2017-02-21 16:34:26 +01:00
parent 95732eecdc
commit 3a6c6601fa

View file

@ -272,6 +272,9 @@ class SVG {
if(isset($this->replacements[$color])) {
return $this->replacements[$color];
}
if(isset($this->replacements['__' . $color . '__'])) {
return $this->replacements['__' . $color . '__'];
}
return '';
}