Update file permissions and enhance error handling in API responses

This commit is contained in:
admin committed 2026-10-10 21:26:38 +02:00
1 parent eb67458ab1
commit ce0777bb33
8 files changed
+28 -6

No files matched your search

Regular → Executable
View File
File mode changed.
+4
View File
@@ -93,6 +93,10 @@ class HTMLLoader {
if ($showAppName) {
$call = new APICall("settings/appname.php");
$response = $call->response;
if (isset($response["error"])) {
$this->showError("Failed to get Application Name: API Returned an error: " . $response["error_text"]);
}
$app_name = $response["data"]["application_name"];
$html = str_replace("%appname%", $app_name, $html);
Regular → Executable
View File
File mode changed.