diff --git a/inc/template.php b/inc/template.php index 837b06eb413a9fc532b89f9ddb1c20b2d923111e..11e71124a79e286dc498bfae3e8c35a4f6e5e024 100644 --- a/inc/template.php +++ b/inc/template.php @@ -950,7 +950,6 @@ function tpl_pageinfo($ret=false){ global $conf; global $lang; global $INFO; - global $REV; global $ID; // return if we are not allowed to view the page @@ -959,7 +958,7 @@ function tpl_pageinfo($ret=false){ // prepare date and path $fn = $INFO['filepath']; if(!$conf['fullpath']){ - if($REV){ + if($INFO['rev']){ $fn = str_replace(fullpath($conf['olddir']).'/','',$fn); }else{ $fn = str_replace(fullpath($conf['datadir']).'/','',$fn);