summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2009-10-29 20:46:28 +0100
committerAndreas Gohr <gohr@cosmocode.de>2009-10-29 20:46:28 +0100
commit613bca5403d8dc9e55f7dfcb0ead7e9f94487d66 (patch)
tree2c01e2528c0afe805400967c2c0099574dcc3448 /inc
parentab91da8996afc97ce129f9e13728f4e4570c60d6 (diff)
downloadrpg-613bca5403d8dc9e55f7dfcb0ead7e9f94487d66.tar.gz
rpg-613bca5403d8dc9e55f7dfcb0ead7e9f94487d66.tar.bz2
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
Diffstat (limited to 'inc')
-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);