From 6f8e9f59450b8bcc55ffabe3d054eea513afad45 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 21 Sep 2009 23:33:02 +0200 Subject: 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 --- inc/html.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/html.php') 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 -- cgit v1.2.3