From 317a04c455623808bdc7574d4a54c7817cbf62e7 Mon Sep 17 00:00:00 2001
From: Satoshi Sahara <sahara.satoshi@gmail.com>
Date: Sat, 19 Mar 2016 18:30:52 +0900
Subject: [PATCH] remove fullpath() call

fullpath processing here seems unnecessary, wikiFN($ID) returns a valid filepath for the page text file.
---
 inc/common.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/common.php b/inc/common.php
index 68af14e50..c7ab7c99a 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -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) {
@@ -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']);
         }
     }
-- 
GitLab