From 930bab7bfff0bbe24d87a741ce7832298102aec2 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 16 Jun 2022 21:22:02 +0200 Subject: [PATCH] Remove hardcoded domain --- src/api/wishlists.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/wishlists.php b/src/api/wishlists.php index af5d88cc..a0265c86 100644 --- a/src/api/wishlists.php +++ b/src/api/wishlists.php @@ -55,6 +55,8 @@ switch ($_SERVER['REQUEST_METHOD']) { /** Set notification time */ if (false !== $wishlist) { + $href = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . Page::PAGE_WISHLISTS . '&id=' . $wishlist['id']; + /** Send email */ $mjml = file_get_contents(ROOT . '/src/mjml/wishlist-request-wishes.mjml'); $mjml = str_replace( @@ -67,7 +69,7 @@ switch ($_SERVER['REQUEST_METHOD']) { sprintf( /** TRANSLATORS: %s: Wishlist name */ __('somebody has requested that you add more wishes to your wishlist %s.'), - '' . $wishlist['name'] . '' + '' . $wishlist['name'] . '' ), $mjml ); @@ -78,9 +80,7 @@ switch ($_SERVER['REQUEST_METHOD']) { ); $mjml = str_replace( 'LINK_WISH_ADD', - $_SERVER['REQUEST_SCHEME'] . '://' . - $_SERVER['HTTP_HOST'] . - Page::PAGE_WISHLISTS . '&id=' . $wishlist['id'] . '&wish_add=true', + $href . '&wish_add=true', $mjml );