Closed (fixed)
Project:
Twig SVG
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2020 at 06:58 UTC
Updated:
14 Feb 2020 at 08:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
malcomio commentedComment #3
aaron.ferris commentedLooks good to me. Thanks.
Comment #5
aaron.ferris commentedComment #6
taherpro commentedThanks for reporting and supplying a patch @malcomio
The patch in #2 is incomplete.
The base svg sprite in base theme `base_theme/images/icons.svg ` gets replaced by the active sub theme svg sprite at `sub_theme/images/icons.svg` in line #21
I am attaching a new patch herein in which the icon span will be appended instead of replacing the icon sprite content on the page.
The patch literally consists on of one dot :D One of the reasons why I love PHP :)
Comment #8
aaron.ferris commentedMakes sense to me, thanks for the contribution.
Comment #9
malcomio commentedI think the new patch will cause PHP notices because $icons isn't initialised before appending to it - we should initialise it as an empty string before entering the loop
Comment #10
taherpro commented@malcomio Yes, That issue is fixed part of this issue in this commit by Aaron.
Comment #11
aaron.ferris commentedYes thats already fixed.