verbb / icon-picker

A Craft CMS field to select SVG or font icons from a folder for use in your content.
Other
17 stars 8 forks source link

Font face name variable is missing #19

Closed fa6ian closed 5 years ago

fa6ian commented 5 years ago

I'm getting an Undefined Variable: name error when I visit an entry with an icon picker field type. If I hard code the font name in the Services.php file it all seems to work, but I was wondering what, if anything, I'm doing wrong.

$this->_loadedFonts[] = [ 'type' => 'local', 'name' => 'font-face-' . $name, 'url' => $this->_getUrlForPath($file), ];

engram-design commented 5 years ago

Should be fixed in 1.0.8