Skip to content

Commit

Permalink
Merge pull request #14 from hybridvision/patch-1
Browse files Browse the repository at this point in the history
Fix bug with paths containing subdirectories
  • Loading branch information
Log1x authored May 23, 2018
2 parents a43d40c + 32c16b3 commit 998de6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function get_icon_sage_path($icon)
$icon_path_rel = RelPath::getRelativePath($icon_path_abs, get_svg_path());

// 6. Final icon path without extension expected
$icon_imgpath_noext = pathinfo($icon_path_rel, PATHINFO_FILENAME);
$icon_imgpath_noext = substr($icon_path_rel, 0, strrpos($icon_path_rel, '.'));

return $icon_imgpath_noext;
}
Expand Down

0 comments on commit 998de6c

Please sign in to comment.