Refactor entry API: consolidate entry handling, update naming conventions, and enhance error reporting

This commit is contained in:
marc-go committed 2026-10-11 19:19:36 +02:00
1 parent 205f2e2f73
commit ad9290d2ad
9 files changed
+72 -12

No files matched your search

+9 -1
View File
@@ -46,7 +46,7 @@ class APICall {
// Check Path
if (!is_file(API_DIR . $path)) {
$this->error("API Path invalid.");
$this->error = "API Path invalid.";
return false;
}
@@ -58,4 +58,12 @@ class APICall {
$this->response = $response;
}
function getError() {
if (isset($this->error)) {
return $this->error;
}else{
return false;
}
}
}