summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-01-26 21:42:26 +0100
committerandi <andi@splitbrain.org>2005-01-26 21:42:26 +0100
commitbaf8cb38d48cfc8b2b70e026e560f58365a5952d (patch)
tree25b907ed2c84e9867db7ed4979c7d65dbd11e913
parent536cc6d82cbbb4116bcee4929c321ed34de1895a (diff)
downloadrpg-baf8cb38d48cfc8b2b70e026e560f58365a5952d.tar.gz
rpg-baf8cb38d48cfc8b2b70e026e560f58365a5952d.tar.bz2
correct notify page urls (fixes #72)
darcs-hash:20050126204226-9977f-1692b8d55afa8cf0f402f8ba8116ec432575d93e.gz
-rw-r--r--inc/common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php
index 5946e299a..9d7caf45c 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -752,14 +752,14 @@ function notify($id,$rev="",$summary=""){
$text = str_replace('@BROWSER@',$_SERVER['HTTP_USER_AGENT'],$text);
$text = str_replace('@IPADDRESS@',$_SERVER['REMOTE_ADDR'],$text);
$text = str_replace('@HOSTNAME@',gethostbyaddr($_SERVER['REMOTE_ADDR']),$text);
- $text = str_replace('@NEWPAGE@',wl($id,'','',true),$text);
+ $text = str_replace('@NEWPAGE@',wl($id,'','doku.php',true),$text);
$text = str_replace('@DOKUWIKIURL@',getBaseURL(true),$text);
$text = str_replace('@SUMMARY@',$summary,$text);
$text = str_replace('@USER@',$_SERVER['REMOTE_USER'],$text);
if($rev){
$subject = $lang['mail_changed'].' '.$id;
- $text = str_replace('@OLDPAGE@',wl($id,"rev=$rev",'',true),$text);
+ $text = str_replace('@OLDPAGE@',wl($id,"rev=$rev",'doku.php',true),$text);
require_once("inc/DifferenceEngine.php");
$df = new Diff(split("\n",rawWiki($id,$rev)),
split("\n",rawWiki($id)));