diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-03-09 09:17:01 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-03-09 09:17:01 +0100 |
commit | 47a906ead4a9ea1105bd2d1038b64b7bd0d67b76 (patch) | |
tree | b25bac6d723f5cf269d0ab27f02ce068ded9478a /inc/common.php | |
parent | a4c4a73d78c4db014dbc66ea67968472d52708f9 (diff) | |
download | rpg-47a906ead4a9ea1105bd2d1038b64b7bd0d67b76.tar.gz rpg-47a906ead4a9ea1105bd2d1038b64b7bd0d67b76.tar.bz2 |
use inlinestyles for diffs in HTML mails
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index a75d452a0..5e2bb7c93 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1086,6 +1086,7 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){ global $lang; global $conf; global $INFO; + global $DIFF_INLINESTYLES; // decide if there is something to do, eg. whom to mail if($who == 'admin'){ @@ -1131,8 +1132,11 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){ explode("\n",rawWiki($id))); $dformat = new UnifiedDiffFormatter(); $tdiff = $dformat->format($df); + + $DIFF_INLINESTYLES = true; $dformat = new InlineDiffFormatter(); $hdiff = $dformat->format($df); + $DIFF_INLINESTYLES = false; }else{ $subject = $lang['mail_newpage'].' '.$id; $trep['OLDPAGE'] = '---'; |