summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-09-21 23:33:02 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-09-21 23:33:02 +0200
commit6f8e9f59450b8bcc55ffabe3d054eea513afad45 (patch)
tree8c10ca6c83254d3f1a43289a7f9ceb12e1a89942 /inc/html.php
parent7871d415d4361d4d2e63553a85086073132c8df7 (diff)
downloadrpg-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
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php1
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