Loading lib/Mail/EMailTemplate.php +8 −0 Original line number Diff line number Diff line Loading @@ -375,6 +375,7 @@ EOF; * @param string $textRight Text of center button; Note: When $plainTextRight falls back to this, HTML is automatically escaped in the HTML email * @param string $urlCenter URL of center button * @param string $plainTextLeft Text of left button that is used in the plain text version - if unset the $textLeft is used * @param string $plainTextRight Text of center button that is used in the plain text version - if unset the $textCenter is used * @param string $plainTextRight Text of right button that is used in the plain text version - if unset the $textRight is used */ public function addBodyButtonGroupTentative( Loading @@ -385,6 +386,7 @@ EOF; string $textCenter, string $urlCenter, string $plainTextLeft = "", string $plainTextCenter = "", string $plainTextRight = "" ) { if ($this->footerAdded) { Loading @@ -395,6 +397,11 @@ EOF; $textLeft = htmlspecialchars($textLeft); } if ($plainTextCenter === "") { $plainTextCenter = $textCenter; $textCenter = htmlspecialchars($textCenter); } if ($plainTextRight === "") { $plainTextRight = $textRight; $textRight = htmlspecialchars($textRight); Loading @@ -420,6 +427,7 @@ EOF; $textCenter, ]); $this->plainBody .= PHP_EOL . $plainTextLeft . ": " . $urlLeft . PHP_EOL; $this->plainBody .= $plainTextCenter . ": " . $urlCenter . PHP_EOL; $this->plainBody .= $plainTextRight . ": " . $urlRight . PHP_EOL . PHP_EOL; } } No newline at end of file Loading
lib/Mail/EMailTemplate.php +8 −0 Original line number Diff line number Diff line Loading @@ -375,6 +375,7 @@ EOF; * @param string $textRight Text of center button; Note: When $plainTextRight falls back to this, HTML is automatically escaped in the HTML email * @param string $urlCenter URL of center button * @param string $plainTextLeft Text of left button that is used in the plain text version - if unset the $textLeft is used * @param string $plainTextRight Text of center button that is used in the plain text version - if unset the $textCenter is used * @param string $plainTextRight Text of right button that is used in the plain text version - if unset the $textRight is used */ public function addBodyButtonGroupTentative( Loading @@ -385,6 +386,7 @@ EOF; string $textCenter, string $urlCenter, string $plainTextLeft = "", string $plainTextCenter = "", string $plainTextRight = "" ) { if ($this->footerAdded) { Loading @@ -395,6 +397,11 @@ EOF; $textLeft = htmlspecialchars($textLeft); } if ($plainTextCenter === "") { $plainTextCenter = $textCenter; $textCenter = htmlspecialchars($textCenter); } if ($plainTextRight === "") { $plainTextRight = $textRight; $textRight = htmlspecialchars($textRight); Loading @@ -420,6 +427,7 @@ EOF; $textCenter, ]); $this->plainBody .= PHP_EOL . $plainTextLeft . ": " . $urlLeft . PHP_EOL; $this->plainBody .= $plainTextCenter . ": " . $urlCenter . PHP_EOL; $this->plainBody .= $plainTextRight . ": " . $urlRight . PHP_EOL . PHP_EOL; } } No newline at end of file