diff --git a/admin_templates.php b/admin_templates.php
index 2f49433d..e437c751 100644
--- a/admin_templates.php
+++ b/admin_templates.php
@@ -449,6 +449,8 @@ if ($action == '') {
);
Database::pexecute($result_stmt, array('id' => $mailbodyid));
$result = $result_stmt->fetch(PDO::FETCH_ASSOC);
+
+ $template_name = str_replace('_mailbody', '', $result['varname']);
$result = htmlentities_array($result);
$mailbody = $result['value'];
diff --git a/templates/Sparkle/admin/templates/templates_edit.tpl b/templates/Sparkle/admin/templates/templates_edit.tpl
index 7a6fcb5c..59661d42 100644
--- a/templates/Sparkle/admin/templates/templates_edit.tpl
+++ b/templates/Sparkle/admin/templates/templates_edit.tpl
@@ -42,7 +42,7 @@ $header
-
+
| {SALUTATION} |
{$lng['admin']['templates']['SALUTATION']} |
@@ -68,7 +68,7 @@ $header
{$lng['admin']['templates']['PASSWORD']} |
-
+
| {EMAIL} |
{$lng['admin']['templates']['EMAIL']} |
@@ -89,7 +89,7 @@ $header
-
+
| {SALUTATION} |
{$lng['admin']['templates']['SALUTATION']} |
@@ -103,7 +103,7 @@ $header
{$lng['admin']['templates']['LINK']} |
-
+
| {TRAFFIC} |
{$lng['admin']['templates']['TRAFFIC']} |
@@ -121,7 +121,7 @@ $header
{$lng['admin']['templates']['USAGE_PERCENT']} |
-
+
| {DISKAVAILABLE} |
{$lng['admin']['templates']['DISKAVAILABLE']} |
@@ -139,8 +139,8 @@ $header
{$lng['admin']['templates']['USAGE_PERCENT']} |
-
+
| {SUBJECT} |
{$lng['admin']['templates']['SUBJECT']} |
@@ -162,7 +162,7 @@ $header
{$lng['admin']['templates']['COMPANY']} |
-
+
| {SALUTATION} |
{$lng['admin']['templates']['SALUTATION']} |
@@ -188,7 +188,7 @@ $header
{$lng['admin']['templates']['PMA_URI']} |
-
+
| {SALUTATION} |
{$lng['admin']['templates']['SALUTATION']} |