Skip to content

Commit

Permalink
remove unnecessary fullpath()
Browse files Browse the repository at this point in the history
  • Loading branch information
ssahara committed Mar 21, 2016
1 parent 317a04c commit c83f69b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/template.php
Expand Up @@ -995,9 +995,9 @@ function tpl_pageinfo($ret = false) {
$fn = $INFO['filepath'];
if(!$conf['fullpath']) {
if($INFO['rev']) {
$fn = str_replace(fullpath($conf['olddir']).'/', '', $fn);
$fn = str_replace($conf['olddir'].'/', '', $fn);
} else {
$fn = str_replace(fullpath($conf['datadir']).'/', '', $fn);
$fn = str_replace($conf['datadir'].'/', '', $fn);
}
}
$fn = utf8_decodeFN($fn);
Expand Down

0 comments on commit c83f69b

Please sign in to comment.