SVG dispatch: allow passing ini colors without underscores
The surrounding underscores can be left out.
This commit is contained in:
parent
95732eecdc
commit
3a6c6601fa
1 changed files with 3 additions and 0 deletions
3
svg.php
3
svg.php
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue