Enhance API error handling and response structure; update app name retrieval method

This commit is contained in:
marc-go committed 2026-10-10 19:23:11 +02:00
1 parent 95f8e22f11
commit eb67458ab1
9 files changed
+38 -9

No files matched your search

+3 -3
View File
@@ -91,9 +91,9 @@ class HTMLLoader {
$html = file_get_contents(TEMPLATE_PATH . $template_dir . "/" . $page["dir_name"] . "/" . $page["html_file"]);
if ($showAppName) {
$app_name = file_get_contents("http://" . APP_DOMAIN . "/api/settings/appname.php");
$app_name = json_decode($app_name, true);
$app_name = $app_name["data"]["application_name"];
$call = new APICall("settings/appname.php");
$response = $call->response;
$app_name = $response["data"]["application_name"];
$html = str_replace("%appname%", $app_name, $html);
}