瀏覽代碼

Issues with "Old" hestia translation string format

Jaap Marcus 5 年之前
父節點
當前提交
ac9fd92c27
共有 4 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      web/add/mail/index.php
  2. 1 1
      web/edit/db/index.php
  3. 1 1
      web/edit/mail/index.php
  4. 2 2
      web/edit/user/index.php

+ 1 - 1
web/add/mail/index.php

@@ -123,7 +123,7 @@ if (!empty($_POST['ok_acc'])) {
     
     // Check password length
     if (empty($_SESSION['error_msg']) && !empty($_POST['v_fwd_only']) ) {
-        if (!validate_password($_POST['v_password'])) { $_SESSION['error_msg'] = __('Password does not match the minimum requirements');}
+        if (!validate_password($_POST['v_password'])) { $_SESSION['error_msg'] = _('Password does not match the minimum requirements');}
     }
 
     // Protect input

+ 1 - 1
web/edit/db/index.php

@@ -64,7 +64,7 @@ if (!empty($_POST['save'])) {
     // Change database password
     if ((!empty($_POST['v_password'])) && (empty($_SESSION['error_msg']))) {
         if (!validate_password($_POST['v_password'])) { 
-             $_SESSION['error_msg'] = __('Password does not match the minimum requirements');
+             $_SESSION['error_msg'] = _('Password does not match the minimum requirements');
         }else{ 
             $v_password = tempnam("/tmp","vst");
             $fp = fopen($v_password, "w");

+ 1 - 1
web/edit/mail/index.php

@@ -399,7 +399,7 @@ if ((!empty($_POST['save'])) && (!empty($_GET['domain'])) && (!empty($_GET['acco
     // Change password
     if ((!empty($_POST['v_password'])) && (empty($_SESSION['error_msg']))) {
         if (!validate_password($_POST['v_password'])) { 
-            $_SESSION['error_msg'] = __('Password does not match the minimum requirements');
+            $_SESSION['error_msg'] = _('Password does not match the minimum requirements');
         }else{         
             $v_password = tempnam("/tmp","vst");
             $fp = fopen($v_password, "w");

+ 2 - 2
web/edit/user/index.php

@@ -101,8 +101,8 @@ if (!empty($_POST['save'])) {
     if ((!empty($_POST['v_password'])) && (empty($_SESSION['error_msg']))) {
         // Check password length
         $pw_len = strlen($_POST['v_password']);
-        if (!validate_password($_POST['v_password'])) { 
-            $_SESSION['error_msg'] = __('Password does not match the minimum requirements');
+        if (!validate_password($_POST['v_password'])){ 
+            $_SESSION['error_msg'] = _('Password does not match the minimum requirements');
         } 
         if (empty($_SESSION['error_msg'])) {
             $v_password = tempnam("/tmp","vst");