diff --git a/inc/actions.php b/inc/actions.php
index 2be5259fd839a4dc83535b6433fd525cad2b7ae9..01d1d29d492069865392a5b1a89ad2973d622b05 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -312,14 +312,15 @@ function act_save($act){
     global $SUF;
     global $SUM;
     global $lang;
+    global $INFO;
 
     //spam check
     if(checkwordblock()) {
         msg($lang['wordblock'], -1);
         return 'edit';
     }
-    //conflict check //FIXME use INFO
-    if($DATE != 0 && @filemtime(wikiFN($ID)) > $DATE )
+    //conflict check
+    if($DATE != 0 && $INFO['meta']['date']['modified'] > $DATE )
         return 'conflict';
 
     //save it
@@ -487,7 +488,9 @@ function act_edit($act){
         }
     }
 
-    if(!$DATE) $DATE = $INFO['lastmod'];
+    // Use the date of the newest revision, not of the revision we edit
+    // This is used for conflict detection
+    if(!$DATE) $DATE = $INFO['meta']['date']['modified'];
 
     //check if locked by anyone - if not lock for my self
     $lockedby = checklock($ID);