feat: Replace main instance URLs with instance-specific URLs in Email class
This commit is contained in:
parent
0a310e8a34
commit
c6e5002ebd
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@ class Email
|
||||||
|
|
||||||
$this->mjml = str_replace('<mj-include path="MJML_PART" />', $this->contentsPart, $this->contentsTemplate);
|
$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 */
|
/** Set Locale */
|
||||||
global $locale;
|
global $locale;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue