Alan Lam 8 лет назад
Родитель
Сommit
6aa9598ea5
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      engine/email_builder.php

+ 5 - 1
engine/email_builder.php

@@ -5,6 +5,10 @@ class EmailBuilder {
 	private $parts = [];
 
 	public function __construct() {
+
+		$protocol = PROTOCOL;
+		$domain = DOMAIN;
+
 		$this->parts[] = <<<EOD
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
@@ -20,7 +24,7 @@ class EmailBuilder {
 					<table border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc;">
 						<tr>
 							<td align="center" style="padding: 40px 0 40px 0; border-bottom: 1px solid #cccccc;">
-								<a href="">
+								<a href="{$protocol}://{$domain}">
 									<img src="../public/img/logo.png" width="386" height="80" style="display: block;" alt="Check Policy logo" />
 								</a>
 							</td>