diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-03-29 14:14:38 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-03-29 14:14:38 +0100 |
commit | 54041c77c7e08db6205a57148735b3266b711756 (patch) | |
tree | 328eb37c75861bf276c233c07780f72f21396759 | |
parent | bf87cd0a2d1850cd3552ee2d384a0287c6a04a55 (diff) | |
download | rpg-54041c77c7e08db6205a57148735b3266b711756.tar.gz rpg-54041c77c7e08db6205a57148735b3266b711756.tar.bz2 |
fix multidiff when one revision is current FS#1355
darcs-hash:20080329131438-7ad00-d3ab26eef403b1008a0d24c719f533e81f8ee6b5.gz
-rw-r--r-- | inc/html.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php index 5811fd141..9ba00b58d 100644 --- a/inc/html.php +++ b/inc/html.php @@ -785,6 +785,11 @@ function html_diff($text='',$intro=true){ if(is_array($_REQUEST['rev2'])){ $rev1 = (int) $_REQUEST['rev2'][0]; $rev2 = (int) $_REQUEST['rev2'][1]; + + if(!$rev1){ + $rev1 = $rev2; + unset($rev2); + } }else{ $rev2 = (int) $_REQUEST['rev2']; } @@ -801,7 +806,7 @@ function html_diff($text='',$intro=true){ $r_head = $lang['yours']; }else{ if($rev1 && $rev2){ // two specific revisions wanted - // make sure order is correct (older on the right) + // make sure order is correct (older on the left) if($rev1 < $rev2){ $l_rev = $rev1; $r_rev = $rev2; |