OSDN Git Service

BugTrack2/55: Added two functions.
authorhenoheno <henoheno>
Sun, 2 Sep 2007 12:35:00 +0000 (21:35 +0900)
committerumorigu <umorigu@gmail.com>
Sun, 30 Nov 2014 01:05:15 +0000 (10:05 +0900)
pkwk_chown(): Try to correct UID of the file
pkwk_touch_file(): touch() with pkwk_chown()

lib/init.php
plugin/attach.inc.php

index ea6f4c4..62c2e88 100644 (file)
@@ -204,7 +204,7 @@ unset($die, $temp);
 // É¬¿Ü¤Î¥Ú¡¼¥¸¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢¶õ¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë
 
 foreach(array($defaultpage, $whatsnew, $interwiki) as $page){
-       if (! is_page($page)) touch(get_filename($page));
+       if (! is_page($page)) pkwk_touch_file(get_filename($page));
 }
 
 /////////////////////////////////////////////////
index 4e04a6c..7fda592 100644 (file)
@@ -195,7 +195,7 @@ function attach_upload($file, $page, $pass = NULL)
                chmod($obj->filename, PLUGIN_ATTACH_FILE_MODE);
 
        if (is_page($page))
-               touch(get_filename($page));
+               pkwk_touch_file(get_filename($page));
 
        $obj->getstatus();
        $obj->status['pass'] = ($pass !== TRUE && $pass !== NULL) ? md5($pass) : '';