removed log.xml (txt remain) (#22); updated README (#24); achor ZapBase (#23)

This commit is contained in:
Fabian de Boer 2026-07-19 21:46:08 +02:00
commit 9196bf07a7
5 changed files with 8 additions and 10 deletions

View file

@ -15,7 +15,7 @@ if (!defined('BRAVE_API_KEY')) {
/**
* Define some app-wide constants
*/
define('ZAP_APP_BASE_DIR', realpath('.' . DIRECTORY_SEPARATOR . '..'));
define('ZAP_APP_BASE_DIR', realpath(__DIR__ . DIRECTORY_SEPARATOR . '..'));
define('ZAP_WEB_DIR', 'www');
define('ZAP_RESOURCE_DIR', 'resource');
define('ZAP_UTILS_DIR', 'utils');
@ -104,7 +104,7 @@ function getZAPTemplate($tplname) {
if (file_exists($tplfilepath)) {
return $tplfilepath;
} else {
return ERROR_PREFIX . 'No template';
throw new Exception(ERROR_PREFIX . 'No template');
}
}
?>