minor - corrected gettext support.
[squirrelmail.git] / src / load_prefs.php
index e36482ad10049a36d39b1f4838b63a310c956380..4478ec9a011a3307722618e02e1d2d60d75817a8 100644 (file)
       if (file_exists($theme[0]["PATH"])) {
          require($theme[0]["PATH"]);
       } else {
-         echo "Theme: " . $theme[0]["PATH"] . " was not found.<BR>";
-         echo "Exiting abnormally";
+         echo _("Theme: ");
+        echo $theme[0]["PATH"];
+        echo _(" was not found.");
+        echo "<BR>";
+         echo _("Exiting abnormally");
          exit;
       }
    }
    $editor_size = getPref($data_dir, $username, "editor_size");
    if ($editor_size == "")
       $editor_size = 76;
+
+   $use_signature = getPref($data_dir, $username, "use_signature");
+   if ($use_signature == "")
+      $use_signature = false;
+
+   /** Load up the Signature file **/
+   if ($use_signature == true) {
+      $signature = getSig($data_dir, $username);
+   } else {
+      $signature = "";
+   }
 ?>