Przeglądaj źródła

test use sections

andre 3 miesięcy temu
rodzic
commit
d7d6ec0c5d

+ 1 - 6
app/UI/Client/Setting/Sections/EditGeneralSection.php

@@ -12,7 +12,6 @@ use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\InputGroup;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;
 use ThurData\Servers\KerioEmail\Core\Helper\DnsHelper;
-use function ThurData\Servers\KerioEmail\Core\Helper\di;
 
 /**
  *
@@ -99,11 +98,7 @@ class EditGeneralSection extends FreeFieldsSection
             $defaults = new Switcher('setDefaults');
             $this->addField($defaults);
         } else {
-            di('lang')->absoluteT('dnseditmessage') ? $message = di('lang')->absoluteT('dnseditmessage') :
-            $message  = 'Settings for <b id="editalertmaildomain" class="lu-alert--lg"></b><br><br>
-            <i class="fas fa-info fa-fw"></i> Incorrect DNS entries lead to difficulties sending and receiving emails. 
-            To ensure that your mail server is functioning properly, it\'s best to follow our recommendations.';
-            $infodns = new Info($message);
+            $infodns = new Info('infodns');
             $infodns->setId('infodns');
             $infodns->setName('infodns');
             $infodns->addHtmlAttribute('disabled', true);