Alex Trofimov 6 лет назад
Родитель
Сommit
3f43be325a

+ 0 - 1
modules/boonex/english/data/langs/system/en.xml

@@ -1867,7 +1867,6 @@
 	<string name="_sys_audit_header_site_setup"><![CDATA[Site setup]]></string>
 	<string name="_sys_audit_mail_sending"><![CDATA[Mail sending]]></string>
 	<string name="_sys_audit_msg_apache_module_fail"><![CDATA[you will need to install {0} for Apache]]></string>
-	<string name="_sys_audit_msg_apache_module_undef"><![CDATA[try to check manually: apachectl -M 2>&1 | grep {0}]]></string>
 	<string name="_sys_audit_msg_cron_jobs"><![CDATA[<pre class="code">{0}</pre> if you are unsure if output is correct then <a href="#manual_audit">manual server audit</a> may be required]]></string>
 	<string name="_sys_audit_msg_optimization_fail"><![CDATA[please enable this cache in Studio &gt; Settings &gt; Cache]]></string>
 	<string name="_sys_audit_msg_optimization_warn"><![CDATA[installing PHP accelerator will speed-up file cache]]></string>

+ 0 - 1
modules/boonex/russian/data/langs/system/ru.xml

@@ -1851,7 +1851,6 @@
 	<string name="_sys_audit_header_site_setup"><![CDATA[Настройка сайта]]></string>
 	<string name="_sys_audit_mail_sending"><![CDATA[Посылка почты]]></string>
 	<string name="_sys_audit_msg_apache_module_fail"><![CDATA[Вам нужно установить {0} для Apache]]></string>
-	<string name="_sys_audit_msg_apache_module_undef"><![CDATA[проверьте вручную: apachectl -M 2>&1 | grep {0}]]></string>
 	<string name="_sys_audit_msg_cron_jobs"><![CDATA[<pre class="code">{0}</pre> если Вы не уверены, корректен ли вывод, может понадобиться <a href="#manual_audit">ручной аудит сервера</a>]]></string>
 	<string name="_sys_audit_msg_optimization_fail"><![CDATA[пожалуйста, задействуйте этот кэш в Студии &gt; Настройки &gt; Кэш]]></string>
 	<string name="_sys_audit_msg_optimization_warn"><![CDATA[установка PHP-акселератора ускорит кэширование файлов]]></string>

+ 3 - 1
studio/classes/BxDolStudioToolsAudit.php

@@ -516,6 +516,8 @@ class BxDolStudioToolsAudit extends BxDol
 
     protected function format_output ($mixedVal, $a)
     {
+        if (isset($a['type']) && 'bytes' == $a['type'])
+            return _t_format_size($mixedVal);
         if (isset($a['type']) && 'bool' == $a['type'])
             return $mixedVal ? 'On' : 'Off';
         else
@@ -559,7 +561,7 @@ class BxDolStudioToolsAudit extends BxDol
             if (!$sApachectlPath)
                 $sApachectlPath = trim(`which /usr/local/apache/bin/apache2ctl`);
             if (!$sApachectlPath) {
-                return array('type' => BX_DOL_AUDIT_UNDEF, 'msg' => _t('_sys_audit_msg_apache_module_undef', $sModule));
+                return array('type' => BX_DOL_AUDIT_UNDEF);
             }
             $ret = (boolean)`$sApachectlPath -M 2>&1 | grep $sModule`;
             if (!$ret)