Modify ↓
#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 , 12 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 12 years ago
| Component: | Template → Shop |
|---|---|
| Type: | Bug/Fehler → Erweiterung |
comment:3 by , 12 years ago
| Milestone: | modified-shop-2.00 → modified-shop-2.10 |
|---|
comment:4 by , 11 years ago
| Version: | 1.06 → 2.10 |
|---|
comment:6 by , 10 years ago
| Milestone: | modified-shop-2.10 → modified-shop-2.00 |
|---|---|
| Version: | 2.10 → 2.0 |
Note:
See TracTickets
for help on using tickets.

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