summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/template.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index 837b06eb4..11e71124a 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);