Skip to content

Commit

Permalink
remove fullpath() call
Browse files Browse the repository at this point in the history
fullpath processing here seems unnecessary, wikiFN($ID) returns a valid filepath for the page text file.
  • Loading branch information
ssahara committed Mar 19, 2016
1 parent d5eb2a7 commit 317a04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/common.php
Expand Up @@ -213,7 +213,7 @@ function pageinfo() {
}

$info['locked'] = checklock($ID);
$info['filepath'] = fullpath(wikiFN($ID));
$info['filepath'] = wikiFN($ID);
$info['exists'] = file_exists($info['filepath']);
$info['currentrev'] = @filemtime($info['filepath']);
if($REV) {
Expand All @@ -227,7 +227,7 @@ function pageinfo() {
msg($lang['nosecedit'], 0);
} else {
//really use old revision
$info['filepath'] = fullpath(wikiFN($ID, $REV));
$info['filepath'] = wikiFN($ID, $REV);
$info['exists'] = file_exists($info['filepath']);
}
}
Expand Down

0 comments on commit 317a04c

Please sign in to comment.