summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2011-01-18 00:04:41 +0100
committerMichael Hamann <michael@content-space.de>2011-01-18 00:04:41 +0100
commit820923f1328bcfe6002831570eb65238411c5b70 (patch)
tree19c22ab2239dabe25ab911d9e82f19d48fca1867 /inc/html.php
parent204b27c8e0c1bcfa6810ee45bd12fda3f5d83960 (diff)
downloadrpg-820923f1328bcfe6002831570eb65238411c5b70.tar.gz
rpg-820923f1328bcfe6002831570eb65238411c5b70.tar.bz2
Revert "tmp" for inc/html.php as it breaks the diff output
This reverts commit fa7c70ff4d7f9999466436e7d559eb0c81571779.
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/inc/html.php b/inc/html.php
index 67b1c10b7..bd87ee7a1 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,12 +948,8 @@ function html_diff($text='',$intro=true){
'<br />'.$l_user.' '.$l_sum;
}
- $_r_rev = $r_rev;
- if (!$_r_rev) {
- $_r_rev = @filemtime(wikiFN($ID));
- }
- if($_r_rev){
- $r_info = getRevisionInfo($ID,$_r_rev,true);
+ 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'].')';