|
556 | 556 | $error_msg = $error_msg.", ".$error; |
557 | 557 | } |
558 | 558 | } |
559 | | - $_SESSION['error_msg'] = _('Field "%s" can not be blank.', $error_msg); |
| 559 | + $_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'), $error_msg); |
560 | 560 | } else { |
561 | 561 | exec('mktemp -d', $mktemp_output, $return_var); |
562 | 562 | $tmpdir = $mktemp_output[0]; |
|
702 | 702 | $error_msg = $error_msg.", ".$error; |
703 | 703 | } |
704 | 704 | } |
705 | | - $_SESSION['error_msg'] = _('Field "%s" can not be blank.', $error_msg); |
| 705 | + $_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'), $error_msg); |
706 | 706 | } else { |
707 | 707 | $v_stats_user = escapeshellarg($_POST['v_stats_user']); |
708 | 708 | $v_stats_password = tempnam("/tmp", "vst"); |
|
730 | 730 | $error_msg = $error_msg.", ".$error; |
731 | 731 | } |
732 | 732 | } |
733 | | - $_SESSION['error_msg'] = _('Field "%s" can not be blank.', $error_msg); |
| 733 | + $_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'), $error_msg); |
734 | 734 | } |
735 | 735 | if (($v_stats_user != $_POST['v_stats_user']) || (!empty($_POST['v_stats_password'])) && (empty($_SESSION['error_msg']))) { |
736 | 736 | $v_stats_user = escapeshellarg($_POST['v_stats_user']); |
|
770 | 770 | $error_msg = $error_msg.", ".$error; |
771 | 771 | } |
772 | 772 | } |
773 | | - $_SESSION['error_msg'] = _('Field "%s" can not be blank.', $error_msg); |
| 773 | + $_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'), $error_msg); |
774 | 774 | } |
775 | 775 |
|
776 | 776 | // Add ftp account |
|
841 | 841 | $error_msg = $error_msg.", ".$error; |
842 | 842 | } |
843 | 843 | } |
844 | | - $_SESSION['error_msg'] = _('Field "%s" can not be blank.', $error_msg); |
| 844 | + $_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'), $error_msg); |
845 | 845 | } |
846 | 846 |
|
847 | 847 | // Change FTP account path |
|
868 | 868 | $hostname = exec('hostname'); |
869 | 869 | $from = "noreply@".$hostname; |
870 | 870 | $from_name = _('Hestia Control Panel'); |
871 | | - $mailtext = _('FTP_ACCOUNT_READY', escapeshellarg($_GET['domain']), $user, $v_ftp_username_for_emailing, $v_ftp_user_data['v_ftp_password']); |
| 871 | + $mailtext = sprintf(_('FTP_ACCOUNT_READY'), escapeshellarg($_GET['domain']), $user, $v_ftp_username_for_emailing, $v_ftp_user_data['v_ftp_password']); |
872 | 872 | send_email($to, $subject, $mailtext, $from, $from_name); |
873 | 873 | unset($v_ftp_email); |
874 | 874 | } |
|
0 commit comments