Skip to content

Commit

Permalink
Fixing the SVG include.
Browse files Browse the repository at this point in the history
  • Loading branch information
krugazul committed Nov 28, 2023
1 parent 4e0f1d9 commit 6066eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lsx-health-plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function lsx_get_svg_icon( $icon ) {
$path = '/assets/images/';

if ( file_exists( LSX_HEALTH_PLAN_PATH . $path . $icon ) ) {
// Load and return the contents of the file.
return include LSX_HEALTH_PLAN_PATH . $path . $icon;
// Load and return the contents of the file
return file_get_contents(LSX_HEALTH_PLAN_PATH . $path . $icon);
}

// Return a blank string if we can't find the file.
Expand Down

0 comments on commit 6066eb5

Please sign in to comment.