]> danix's work - danix.xyz-2.git/commitdiff
fix: correct mail-config.php path in contact.php (dirname depth 2→3) release_22042026-1417
authorDanilo M. <redacted>
Wed, 22 Apr 2026 12:17:52 +0000 (14:17 +0200)
committerDanilo M. <redacted>
Wed, 22 Apr 2026 12:17:52 +0000 (14:17 +0200)
static/api/contact.php

index d8f22397e4f2bb40fbf6acc7b27271326e31281b..842ccdb9c92c2bdc8e3e9da2ef6408a4f7f69315 100644 (file)
@@ -33,7 +33,7 @@ const RATE_DIR       = '/var/lib/danixxyz/cf_rate'; // owned by www-data:www-dat
 //     'smtp_pass'   => getenv('MAIL_SMTP_PASS')  ?: '',
 // ];
 
-$cfg = require dirname(__DIR__, 2) . '/mail-config.php';
+$cfg = require dirname(__DIR__, 3) . '/mail-config.php';
 
 if ($cfg['recipient'] === '' || $cfg['smtp_host'] === '' || $cfg['smtp_user'] === '') {
     out(500, 'Mail not configured');