From 1479fd9e6517611b12d4b68a48f11f48da37cd3f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 25 Jul 2011 23:43:12 +0000 Subject: [PATCH] create-mailbox.php, variables.inc.php, create-mailbox.tpl - removed always empty variable $pCreate_mailbox_username_text - replaced "static" variables $pCreate_mailbox_password_text and $pCreate_mailbox_quota_text with their PALANG content in the template git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1132 a1433add-5e2c-0410-b055-b7f2511e0802 --- create-mailbox.php | 5 ----- templates/create-mailbox.tpl | 5 ++--- variables.inc.php | 3 --- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/create-mailbox.php b/create-mailbox.php index ca9d0f0e..6a2c2030 100644 --- a/create-mailbox.php +++ b/create-mailbox.php @@ -46,8 +46,6 @@ else { } -$pCreate_mailbox_password_text = $PALANG['pCreate_mailbox_password_text']; -$pCreate_mailbox_quota_text = $PALANG['pCreate_mailbox_quota_text']; $pCreate_mailbox_username_text_error = ""; $pCreate_mailbox_password_text_error = ""; $pCreate_mailbox_quota_text_error = ""; @@ -264,13 +262,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") $smarty->assign ('tUsername', $tUsername); $smarty->assign ('select_options', select_options ($list_domains, array ($tDomain)), false); -$smarty->assign ('pCreate_mailbox_username_text', $pCreate_mailbox_username_text, false); $smarty->assign ('pCreate_mailbox_username_text_error', $pCreate_mailbox_username_text_error, false); -$smarty->assign ('pCreate_mailbox_password_text', $pCreate_mailbox_password_text, false); $smarty->assign ('pCreate_mailbox_password_text_error', $pCreate_mailbox_password_text_error, false); $smarty->assign ('tName', $tName, false); $smarty->assign ('tQuota', $tQuota); -$smarty->assign ('pCreate_mailbox_quota_text', $pCreate_mailbox_quota_text, false); $smarty->assign ('pCreate_mailbox_quota_text_error', $pCreate_mailbox_quota_text_error, false); $smarty->assign ('smarty_template', 'create-mailbox'); $smarty->display ('index.tpl'); diff --git a/templates/create-mailbox.tpl b/templates/create-mailbox.tpl index 996591c2..88e6cb88 100644 --- a/templates/create-mailbox.tpl +++ b/templates/create-mailbox.tpl @@ -10,14 +10,13 @@ @ - {$pCreate_mailbox_username_text} {$pCreate_mailbox_username_text_error} - {$pCreate_mailbox_password_text} + {$PALANG.pCreate_mailbox_password_text} {$pCreate_mailbox_password_text_error} @@ -35,7 +34,7 @@ - {$pCreate_mailbox_quota_text} + {$PALANG.pCreate_mailbox_quota_text} {$pCreate_mailbox_quota_text_error} {/if} diff --git a/variables.inc.php b/variables.inc.php index fde777c1..8364dd69 100644 --- a/variables.inc.php +++ b/variables.inc.php @@ -76,9 +76,6 @@ $tSubject = ""; $tUsername = ""; $tTransport = ""; -$pCreate_mailbox_password_text = " "; -$pCreate_mailbox_quota_text = " "; -$pCreate_mailbox_username_text = " "; $pEdit_mailbox_password_text = " "; $pEdit_mailbox_quota_text = " ";