|
|
@@ -124,8 +124,9 @@ class QRMarkupSVG extends QRMarkup{
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
|
|
|
*/
|
|
|
protected function path(string $path, int $M_TYPE):string{
|
|
|
+ $val = $this->getModuleValue($M_TYPE);
|
|
|
// ignore non-existent module values
|
|
|
- $format = !isset($this->moduleValues[$M_TYPE]) || empty($this->moduleValues[$M_TYPE])
|
|
|
+ $format = empty($val)
|
|
|
? '<path class="%1$s" d="%2$s"/>'
|
|
|
: '<path class="%1$s" fill="%3$s" fill-opacity="%4$s" d="%2$s"/>';
|
|
|
|
|
|
@@ -133,7 +134,7 @@ class QRMarkupSVG extends QRMarkup{
|
|
|
$format,
|
|
|
$this->getCssClass($M_TYPE),
|
|
|
$path,
|
|
|
- ($this->moduleValues[$M_TYPE] ?? ''), // value may or may not exist
|
|
|
+ ($val ?? ''), // value may or may not exist
|
|
|
$this->options->svgOpacity
|
|
|
);
|
|
|
}
|