summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/inc/html.php b/inc/html.php
index 1e02ac9ce..98ee8a496 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -876,7 +876,7 @@ function html_diff($text='',$intro=true){
// array in rev2.
$rev1 = $REV;
- if(is_array($_REQUEST['rev2'])){
+ if (is_array($_REQUEST['rev2'])){
$rev1 = (int) $_REQUEST['rev2'][0];
$rev2 = (int) $_REQUEST['rev2'][1];
@@ -948,8 +948,12 @@ function html_diff($text='',$intro=true){
'<br />'.$l_user.' '.$l_sum;
}
- if($r_rev){
- $r_info = getRevisionInfo($ID,$r_rev,true);
+ $_r_rev = $r_rev;
+ if (!$_r_rev) {
+ $_r_rev = @filemtime(wikiFN($ID));
+ }
+ if($_r_rev){
+ $r_info = getRevisionInfo($ID,$_r_rev,true);
if($r_info['user']){
$r_user = editorinfo($r_info['user']);
if(auth_ismanager()) $r_user .= ' ('.$r_info['ip'].')';