From 1214c4f7ba83b3e6ba5039e3fceb1aa4b863bbd3 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 27 Dec 2017 12:23:50 -0500 Subject: [PATCH] Skill: Fix warning in badges if custom baked badge file could not be found --- main/badge/issued.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/badge/issued.php b/main/badge/issued.php index 967f9af4f3..98d87c0ecc 100644 --- a/main/badge/issued.php +++ b/main/badge/issued.php @@ -240,7 +240,7 @@ if ($allowDownloadExport) { $skills = $objSkill->get($skillId); $unbakedBadge = api_get_path(SYS_UPLOAD_PATH).'badges/'.$skills['icon']; if (!is_file($unbakedBadge)) { - $unbakedBadge = api_get_path(WEB_CODE_PATH).'img/icons/128/badges-default.png'; + $unbakedBadge = api_get_path(SYS_CODE_PATH).'img/icons/128/badges-default.png'; } $unbakedBadge = file_get_contents($unbakedBadge);