feat: Replace main instance URLs with instance-specific URLs in Email class

This commit is contained in:
Kumi 2025-03-11 10:44:17 +01:00
parent 0a310e8a34
commit c6e5002ebd
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -29,6 +29,10 @@ class Email
$this->mjml = str_replace('<mj-include path="MJML_PART" />', $this->contentsPart, $this->contentsTemplate);
/** Replace references to wishthis.online with instance-specific information */
$baseurl = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
$this->mjml = str_replace('https://wishthis.online', $baseurl, $this->mjml);
/** Set Locale */
global $locale;