diff options
author | Hakan Sandell <hakan.sandell@home.se> | 2010-10-03 14:16:13 +0200 |
---|---|---|
committer | Hakan Sandell <hakan.sandell@home.se> | 2010-10-03 14:16:13 +0200 |
commit | 7cceaa7443c80b526a6bbad32b6cbdf5d759fd39 (patch) | |
tree | 37b75aab8bf88ad11745c8abe37ec6ebb8d68e8c /inc/common.php | |
parent | 831c10d03192413b75ee2be21fb314e0797fdc23 (diff) | |
parent | c1e6807d8013592efafd00472f75ea08dc7347ec (diff) | |
download | rpg-7cceaa7443c80b526a6bbad32b6cbdf5d759fd39.tar.gz rpg-7cceaa7443c80b526a6bbad32b6cbdf5d759fd39.tar.bz2 |
Merge branch 'master' of git://github.com/splitbrain/dokuwiki
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php index 003546409..390b038a5 100644 --- a/inc/common.php +++ b/inc/common.php @@ -987,9 +987,10 @@ function saveWikiText($id,$text,$summary,$minor=false){ $mfiles = metaFiles($id); $changelog = metaFN($id, '.changes'); $metadata = metaFN($id, '.meta'); + $subscribers = metaFN($id, '.mlist'); foreach ($mfiles as $mfile) { - // but keep per-page changelog to preserve page history and keep meta data - if (@file_exists($mfile) && $mfile!==$changelog && $mfile!==$metadata) { @unlink($mfile); } + // but keep per-page changelog to preserve page history, keep subscriber list and keep meta data + if (@file_exists($mfile) && $mfile!==$changelog && $mfile!==$metadata && $mfile!==$subscribers) { @unlink($mfile); } } // purge meta data p_purge_metadata($id); |