mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
replaceMarker() is deprecated
This commit is contained in:
parent
3b4b256763
commit
d1f62e0eae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user