[PATCH] Add NAME and MAIL macros to notify()

  • From: andywebber <dokuwiki@xxxxxxxxxxxxxx>
  • Date: Sun, 11 Apr 2010 10:53:08 +0100

---
 inc/common.php |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/inc/common.php b/inc/common.php
index 4e5a2e1..fadf71b 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);
-- 
1.6.3.3


--------------060903020109080203080002--
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [PATCH] Add NAME and MAIL macros to notify() - andywebber