Update file permissions and enhance error handling in API responses
This commit is contained in:
1 parent
eb67458ab1
commit
ce0777bb33
8 files changed
+28
-6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user