Fix Discord webhook showing localhost instead of APP_DOMAIN
create_ticket_api.php was not including config/config.php, so $GLOBALS['config'] was empty when UrlHelper::ticketUrl() checked for APP_DOMAIN, causing it to fall back to localhost. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,9 @@ if ($conn->connect_error) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load application config so UrlHelper can resolve APP_DOMAIN
|
||||||
|
require_once __DIR__ . '/config/config.php';
|
||||||
|
|
||||||
// Authenticate via API key
|
// Authenticate via API key
|
||||||
require_once __DIR__ . '/middleware/ApiKeyAuth.php';
|
require_once __DIR__ . '/middleware/ApiKeyAuth.php';
|
||||||
require_once __DIR__ . '/models/AuditLogModel.php';
|
require_once __DIR__ . '/models/AuditLogModel.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user