diff options
author | Hakan Sandell <hakan.sandell@home.se> | 2010-10-08 21:15:19 +0200 |
---|---|---|
committer | Hakan Sandell <hakan.sandell@home.se> | 2010-10-08 21:15:19 +0200 |
commit | e3626db54846ba20cefbc1a9e2d8e29c40137067 (patch) | |
tree | be549543a7c36718ffb06a6293fe80ee0675ec92 /inc/common.php | |
parent | 7cceaa7443c80b526a6bbad32b6cbdf5d759fd39 (diff) | |
parent | 4ea48b361401e136dbfd3339af368ceeb5b27480 (diff) | |
download | rpg-e3626db54846ba20cefbc1a9e2d8e29c40137067.tar.gz rpg-e3626db54846ba20cefbc1a9e2d8e29c40137067.tar.bz2 |
Merge branch 'master' of git://github.com/splitbrain/dokuwiki
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 390b038a5..6af7f49de 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1128,7 +1128,11 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){ $diff = rawWiki($id); } $text = str_replace('@DIFF@',$diff,$text); - $subject = '['.$conf['title'].'] '.$subject; + if(utf8_strlen($conf['title']) < 20) { + $subject = '['.$conf['title'].'] '.$subject; + }else{ + $subject = '['.utf8_substr($conf['title'], 0, 20).'...] '.$subject; + } $from = $conf['mailfrom']; $from = str_replace('@USER@',$_SERVER['REMOTE_USER'],$from); |