diff --git a/index.php b/index.php index d30616e..e7d2bda 100644 --- a/index.php +++ b/index.php @@ -28,15 +28,16 @@ ]; function getStatusIndicator($status) { + $icon_path = __DIR__ . '/assets/icons/'; switch ($status) { case 'submitted': - return '' . file_get_contents("assets/icons/check.svg") . ''; + return '' . file_get_contents($icon_path . "check.svg") . ''; case 'pending': - return '' . file_get_contents("assets/icons/clock.svg") . ''; + return '' . file_get_contents($icon_path . "clock.svg") . ''; case 'missed': - return '' . file_get_contents("assets/icons/x.svg") . ''; + return '' . file_get_contents($icon_path . "x.svg") . ''; case 'ooo': - return '' . file_get_contents("assets/icons/palm.svg") . ''; + return '' . file_get_contents($icon_path . "palm.svg") . ''; default: return ''; } @@ -56,7 +57,7 @@