diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-09-21 23:33:02 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-09-21 23:33:02 +0200 |
commit | 6f8e9f59450b8bcc55ffabe3d054eea513afad45 (patch) | |
tree | 8c10ca6c83254d3f1a43289a7f9ceb12e1a89942 | |
parent | 7871d415d4361d4d2e63553a85086073132c8df7 (diff) | |
download | rpg-6f8e9f59450b8bcc55ffabe3d054eea513afad45.tar.gz rpg-6f8e9f59450b8bcc55ffabe3d054eea513afad45.tar.bz2 |
diff view puts revision back into $REV
Ignore-this: c671d4887772c0e08b04687472a5142f
When a diff is shown without giving a revision (eg when coming from recent
changes), the diff is done agains the latest non-current revisions. This
revision is now put back into the global $REV.
This fixes a problem with the restore button not visible.
However this only works when the restore button is called after the diff
view. A better solution probably needs to be found.
darcs-hash:20090921213302-7ad00-aa9ef53f9bc9ea8d0dc51e55b049943feb11c412.gz
-rw-r--r-- | inc/html.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php index 9581a27e7..5aac5cfe8 100644 --- a/inc/html.php +++ b/inc/html.php @@ -902,6 +902,7 @@ function html_diff($text='',$intro=true){ $r_rev = ''; $revs = getRevisions($ID, 0, 1); $l_rev = $revs[0]; + $REV = $l_rev; // store revision back in $REV } // when both revisions are empty then the page was created just now |