Fix for problem diffing with current revision
authorMr. E23 <e23@users.mediawiki.org>
Fri, 6 Feb 2004 14:46:01 +0000 (14:46 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Fri, 6 Feb 2004 14:46:01 +0000 (14:46 +0000)
includes/PageHistory.php

index 58a4a21..52bf8f8 100644 (file)
@@ -118,7 +118,7 @@ class PageHistory {
                                return false; 
                        } 
                        function dodiff(v1, v2){
-                               if(v2 > v1){ tmp = v1; v1 = v2; v2 = tmp; }
+                               if(v2 > v1 && v1 != 0){ tmp = v1; v1 = v2; v2 = tmp; }
                                u = \"{$url}&diff=\" + v1 + \"&oldid=\" + v2;
                                location.href=u;
                        }