Skip to content
Snippets Groups Projects
Commit f40e778b authored by andywebber's avatar andywebber Committed by Andreas Gohr
Browse files

Add NAME and MAIL macros to notify()

parent b4877af3
No related branches found
No related tags found
No related merge requests found
...@@ -1106,6 +1106,8 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){ ...@@ -1106,6 +1106,8 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){
$text = str_replace('@DOKUWIKIURL@',DOKU_URL,$text); $text = str_replace('@DOKUWIKIURL@',DOKU_URL,$text);
$text = str_replace('@SUMMARY@',$summary,$text); $text = str_replace('@SUMMARY@',$summary,$text);
$text = str_replace('@USER@',$_SERVER['REMOTE_USER'],$text); $text = str_replace('@USER@',$_SERVER['REMOTE_USER'],$text);
$text = str_replace('@NAME@',$INFO['userinfo']['name'],$text);
$text = str_replace('@MAIL',$INFO['userinfo']['mail'],$text);
foreach ($replace as $key => $substitution) { foreach ($replace as $key => $substitution) {
$text = str_replace('@'.strtoupper($key).'@',$substitution, $text); $text = str_replace('@'.strtoupper($key).'@',$substitution, $text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment