Modify

Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#126 closed Erweiterung (fixed)

Unnötige Leerezeile vor Signatur entfernen

Reported by: voodoopupp Owned by: Ronald Parcinski
Priority: normal Milestone: modified-shop-2.0.0.0
Component: Shop Version: 2.0.0.0
Keywords: Cc:
Blocked By: Blocking:

Description

In der Datei inc/xtc_php_mail.inc.php ist vor der Signatur für die E-Mails jeweils eine Leerzeile (html & txt) vorangestellt. Hierdurch ist es teilweise unmöglich, die Signatur in den E-Mails entsprechend richtig zu positionieren.

Daher sollte diese hardgecodete Leerzeile jeweils entfernt werden. Jeder, der das weiterhin möchte/benötigt, kann dies dann direkt in den entsprechenden Dateien (templates/xtc5/mail/LANGUAGE/signatur.html bzw. signatur.txt) einstellen.

ERSETZE

  // load the signatures only, if the appropriate file(s) exists
  $html_signatur = '';
  $txt_signatur = '';
  if (file_exists(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.html')) {
    $html_signatur = '<br />' .$mailsmarty->fetch(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.html'); //web28 - 2011-06-10 - ADD Linebreak
  }
  if (file_exists(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.txt')) {
    $txt_signatur = "\n" . $mailsmarty->fetch(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.txt'); //web28 - 2011-06-10 - ADD Linebreak
  }
  //EOF - Dokuman - 2009-10-30 - Check for existing signature files

MIT

  // load the signatures only, if the appropriate file(s) exists
  $html_signatur = '';
  $txt_signatur = '';
  if (file_exists(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.html')) {
    $html_signatur = $mailsmarty->fetch(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.html'); //web28 - 2011-06-10 - ADD Linebreak
  }
  if (file_exists(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.txt')) {
    $txt_signatur = $mailsmarty->fetch(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/signatur.txt'); //web28 - 2011-06-10 - ADD Linebreak
  }
  //EOF - Dokuman - 2009-10-30 - Check for existing signature files

Attachments (0)

Change History (6)

comment:1 by Simon Heinrich, 12 years ago

Owner: set to Ronald Parcinski
Status: newassigned

Der einzige Unterschied ist das "<br />" bzw. "\n"?

comment:2 by Torsten Riemer, 12 years ago

Component: TemplateShop
Type: Bug/FehlerErweiterung

comment:3 by Gerhard Waldemair, 12 years ago

Milestone: modified-shop-2.00modified-shop-2.10

comment:4 by Gerhard Waldemair, 11 years ago

Version: 1.062.10

comment:5 by Gerhard Waldemair, 10 years ago

Resolution: fixed
Status: assignedclosed

In 8388:

fix #126

comment:6 by Gerhard Waldemair, 10 years ago

Milestone: modified-shop-2.10modified-shop-2.00
Version: 2.102.0

Modify Ticket

Action
as closed The owner will remain Ronald Parcinski.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.