From 613bca5403d8dc9e55f7dfcb0ead7e9f94487d66 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <gohr@cosmocode.de> Date: Thu, 29 Oct 2009 20:46:28 +0100 Subject: [PATCH] fixed a problem with $conf['fullpath'] Ignore-this: 236897eb557ad490009ccce53f6d216a The option wasn't honored on some diff views, revealing a full path. This was caused by the recent change to make the revert button work on diff views. darcs-hash:20091029194628-6e07b-5eabcfeeb2651b8b580912c5d418b174b4aaf107.gz --- inc/template.php | 3 +-- 1 file changed, 1 insertion(+), 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); -- GitLab