2011-01-20
danny0838
This is a sample change that should have the problem fixed.
@@ -949,7 +949,8 @@
global $lang;
global $REV;
// ignore if no changes were made
- if($text == rawWiki($id,'')){
+ $raw = rawWiki($id,'');
+ if($text == $raw){
return;
}
@@ -961,7 +962,7 @@
$newRev = false;
$oldRev = getRevisions($id, -1, 1, 1024); // from changelog
$oldRev = (int)(empty($oldRev)?0:$oldRev[0]);
- if(!@file_exists(wikiFN($id, $old)) && @file_exists($file) && $old>=$oldRev) {
+ if(!@file_exists(wikiFN($id, $old)) && @file_exists($file) && $old>=$oldRev && $raw!=rawWiki($id,$oldRev)) {
// add old revision to the attic if missing
saveOldRevision($id);
// add a changelog entry if this edit came from outside dokuwiki