minor textual updates (#506707)
[squirrelmail.git] / src / download.php
index 2ee84adf250f8dd10bbf6daa77b4e6f830958365..abbadcbd3ec72d5cdf00a518ed4922586c4cd7be 100644 (file)
@@ -44,7 +44,7 @@ require_once('../functions/date.php');
       
       displayPageHeader($color, 'None');
 
-      echo "<BR><TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
+      echo "<BR><TABLE WIDTH=\"100%\" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
       echo "<B><CENTER>";
       echo _("Viewing a text attachment") . " - ";
       if ($where && $what) {
@@ -61,7 +61,7 @@ require_once('../functions/date.php');
       echo "</CENTER></B>";
       echo "</TD></TR></TABLE>";
 
-      echo "<TABLE WIDTH=98% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
+      echo "<TABLE WIDTH=\"98%\" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
       echo "<TR><TD BGCOLOR=\"$color[4]\"><TT>";
 
       if ($type1 == 'html') {
@@ -104,11 +104,17 @@ require_once('../functions/date.php');
    }
 
    if (strlen($filename) < 1) {
-      if ($type1 == "plain" && $type0 == "text")                  $suffix = "txt";
-      else if ($type1 == "richtext" && $type0 == "text")          $suffix = "rtf";
-      else if ($type1 == "postscript" && $type0 == "application") $suffix = "ps";
-      else if ($type1 == "message" && $type0 == "rfc822")         $suffix = "msg";
-      else $suffix = $type1;
+      if ($type1 == 'plain' && $type0 == 'text') {
+          $suffix = 'txt';
+      } else if ($type1 == 'richtext' && $type0 == 'text') {
+          $suffix = 'rtf';
+      } else if ($type1 == 'postscript' && $type0 == 'application') {
+          $suffix = 'ps';
+      } else if ($type1 == 'message' && $type0 == 'rfc822') {
+          $suffix = 'msg';
+      } else {
+          $suffix = $type1;
+      }
 
       $filename = "untitled$passed_ent_id.$suffix";
    }