replaceMarker() is deprecated

This commit is contained in:
Uwe Steinmann 2013-09-13 14:06:28 +02:00
parent 3b4b256763
commit d1f62e0eae

View File

@ -35,14 +35,18 @@ abstract class SeedDMS_Notify {
abstract function toGroup($sender, $groupRecipient, $subject, $message, $params=array());
abstract function toList($sender, $recipients, $subject, $message, $params=array());
function replaceMarker($text) {
/**
* Deprecated: don't use any more
*
*/
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));
}
} /* }}} */
function setSender($user) {
$this->sender = $user;