mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
move replaceMarker from Notify
This commit is contained in:
parent
401f3ba685
commit
8d88844190
|
@ -36,5 +36,15 @@ class SeedDMS_EmailUtils {
|
||||||
$subject = "=?UTF-8?B?".base64_encode($this->replaceMarker($subject))."?=";
|
$subject = "=?UTF-8?B?".base64_encode($this->replaceMarker($subject))."?=";
|
||||||
return (mail($recipient->getEmail(), $subject, $this->replaceMarker($message), implode("\r\n", $headers)) ? 0 : -1);
|
return (mail($recipient->getEmail(), $subject, $this->replaceMarker($message), implode("\r\n", $headers)) ? 0 : -1);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function replaceMarker($text) { /* {{{ */
|
||||||
|
global $settings;
|
||||||
|
|
||||||
|
return(str_replace(
|
||||||
|
array('###SITENAME###', '###HTTP_ROOT###', '###URL_PREFIX###'),
|
||||||
|
array($settings->_siteName, $settings->_httpRoot, "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot),
|
||||||
|
$text));
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user