summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorandywebber <dokuwiki@andywebber.com>2010-04-11 10:53:08 +0100
committerAndreas Gohr <andi@splitbrain.org>2010-04-11 12:07:30 +0200
commitf40e778bd458a77910ed4a05040cbf520b6beabb (patch)
tree8fc8a59f7f6f140aed3e853e66e34875cf60f766 /inc/common.php
parentb4877af37a38cedb703d975b6eca8ceb18652acd (diff)
downloadrpg-f40e778bd458a77910ed4a05040cbf520b6beabb.tar.gz
rpg-f40e778bd458a77910ed4a05040cbf520b6beabb.tar.bz2
Add NAME and MAIL macros to notify()
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php
index 4e5a2e197..fadf71b03 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1106,6 +1106,8 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){
$text = str_replace('@DOKUWIKIURL@',DOKU_URL,$text);
$text = str_replace('@SUMMARY@',$summary,$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) {
$text = str_replace('@'.strtoupper($key).'@',$substitution, $text);