mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +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 toGroup($sender, $groupRecipient, $subject, $message, $params=array());
|
||||||
abstract function toList($sender, $recipients, $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;
|
global $settings;
|
||||||
|
|
||||||
return(str_replace(
|
return(str_replace(
|
||||||
array('###SITENAME###', '###HTTP_ROOT###', '###URL_PREFIX###'),
|
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),
|
array($settings->_siteName, $settings->_httpRoot, "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot),
|
||||||
$text));
|
$text));
|
||||||
}
|
} /* }}} */
|
||||||
|
|
||||||
function setSender($user) {
|
function setSender($user) {
|
||||||
$this->sender = $user;
|
$this->sender = $user;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user