Revisión | 0c91a64fb8d915e7d2f6e3cdce49c4e0369134b0 (tree) |
---|---|
Tiempo | 2014-11-30 10:05:15 |
Autor | henoheno <henoheno> |
Commiter | umorigu |
BugTrack2/55: Added two functions.
pkwk_chown(): Try to correct UID of the file
pkwk_touch_file(): touch() with pkwk_chown()
@@ -204,7 +204,7 @@ unset($die, $temp); | ||
204 | 204 | // 必須のページが存在しなければ、空のファイルを作成する |
205 | 205 | |
206 | 206 | foreach(array($defaultpage, $whatsnew, $interwiki) as $page){ |
207 | - if (! is_page($page)) touch(get_filename($page)); | |
207 | + if (! is_page($page)) pkwk_touch_file(get_filename($page)); | |
208 | 208 | } |
209 | 209 | |
210 | 210 | ///////////////////////////////////////////////// |
@@ -195,7 +195,7 @@ function attach_upload($file, $page, $pass = NULL) | ||
195 | 195 | chmod($obj->filename, PLUGIN_ATTACH_FILE_MODE); |
196 | 196 | |
197 | 197 | if (is_page($page)) |
198 | - touch(get_filename($page)); | |
198 | + pkwk_touch_file(get_filename($page)); | |
199 | 199 | |
200 | 200 | $obj->getstatus(); |
201 | 201 | $obj->status['pass'] = ($pass !== TRUE && $pass !== NULL) ? md5($pass) : ''; |