Skip to content

Commit 8a21ad4

Browse files
author
Kristan Kenney
committed
Merge branch 'develop' into webui-refresh-winterfell
2 parents 42d0e0e + 10da005 commit 8a21ad4

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

web/add/mail/index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
// Get webmail url
171171
if (empty($_SESSION['error_msg'])) {
172172
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
173-
$webmail = "http://".$http_host."/webmail/";
173+
$webmail = "http://".$hostname."/".$v_webmail_alias."/";
174174
if (!empty($_SESSION['WEBMAIL_ALIAS'])) $webmail = $_SESSION['WEBMAIL_ALIAS'];
175175
}
176176

@@ -187,7 +187,6 @@
187187
// Flush field values on success
188188
if (empty($_SESSION['error_msg'])) {
189189
$_SESSION['ok_msg'] = __('MAIL_ACCOUNT_CREATED_OK',htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST[v_domain]),htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST[v_domain]));
190-
$_SESSION['ok_msg'] .= " / <a href=".$webmail." target='_blank'>" . __('open webmail') . "</a>";
191190
unset($v_account);
192191
unset($v_password);
193192
unset($v_password);

web/inc/i18n/en.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
'Record Number' => 'Record Number',
316316
'in megabytes' => 'in MB',
317317
'Message' => 'Message',
318-
'use local-part' => 'Use local-part (without domain name)',
318+
'use local-part' => 'Use local-part without domain name',
319319
'one or more email addresses' => 'One or more email addresses',
320320
'Prefix will be automaticaly added to database name and database user' => 'Prefix <b>%s</b> will be added to the database and user names automatically',
321321
'Database' => 'Database',

web/templates/admin/add_mail_acc.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@
197197
</tr>
198198
<?
199199
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
200-
$webmail = "http://".$http_host."/webmail/";
201-
if (!empty($_SESSION['WEBMAIL_ALIAS'])) $webmail = $_SESSION['WEBMAIL_ALIAS'];
200+
$webmail = "http://webmail.".$v_domain."/";
202201
?>
203202
<tr>
204203
<td><?=__('Webmail URL')?>:</td>

web/templates/admin/edit_mail_acc.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
<?
203203
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
204204
$webmail = "http://webmail.".$v_domain."/";
205-
if (!empty($_SESSION['WEBMAIL_ALIAS'])) $webmail = $_SESSION['WEBMAIL_ALIAS'];
206205
?>
207206
<tr>
208207
<td><?=__('Webmail URL')?>:</td>

0 commit comments

Comments
 (0)