This commit is contained in:
parent
ab0ac45415
commit
9196bf07a7
5 changed files with 8 additions and 10 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue