From dca34de7235d96144870d42a7ccfbe786036b5af Mon Sep 17 00:00:00 2001 From: mercury Date: Tue, 17 Sep 2024 20:36:51 +0400 Subject: [PATCH] fix config menu --- app/bot.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 09b1d95..737b57c 100644 --- a/app/bot.php +++ b/app/bot.php @@ -5327,6 +5327,10 @@ DNS-over-HTTPS with IP: $ssl = $this->expireCert(); $text[] = $conf['domain'] ? "\nSSL: " . ($ssl ? date('Y-m-d H:i:s', $this->expireCert()) : 'none') : ''; + if (!empty($conf['linkdomain'])) { + $text[] = "\nDomain for link: {$conf['linkdomain']}"; + } + $data = [ [ [ @@ -5338,7 +5342,7 @@ DNS-over-HTTPS with IP: 'callback_data' => '/addSubdomain', ], [ - 'text' => $this->i18n('domain for link'), + 'text' => $conf['linkdomain'] ? "{$conf['linkdomain']}" :$this->i18n('domain for link'), 'callback_data' => '/addLinkDomain', ], ],