summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-22 14:17:52 +0200
committerDanilo M. <danix@danix.xyz>2026-04-22 14:17:52 +0200
commit7f501986d4417616484e9f901393df5efc18941e (patch)
treede34344c439338a88ac511a3e503202afa5a2ed9
parentc2f805c17713bc60a9cc8a353cf393226395ca46 (diff)
downloaddanixxyz-7f501986d4417616484e9f901393df5efc18941e.tar.gz
danixxyz-7f501986d4417616484e9f901393df5efc18941e.zip
fix: correct mail-config.php path in contact.php (dirname depth 2→3)release_22042026-1417
-rw-r--r--static/api/contact.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/api/contact.php b/static/api/contact.php
index d8f2239..842ccdb 100644
--- a/static/api/contact.php
+++ b/static/api/contact.php
@@ -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');