Changeset 6052 for trunk/admin/include
- Timestamp:
- May 3, 2010, 2:49:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upload.inc.php
r5957 r6052 32 32 // upload directory hierarchy 33 33 $upload_dir = sprintf( 34 PHPWG_ROOT_PATH. 'upload/%s/%s/%s',34 PHPWG_ROOT_PATH.$conf['upload_dir'].'/%s/%s/%s', 35 35 $year, 36 36 $month, … … 97 97 'date_available' => $dbnow, 98 98 'tn_ext' => 'jpg', 99 'path' => preg_replace(' /^.*?upload/', './upload', $file_path),99 'path' => preg_replace('#^'.preg_quote(PHPWG_ROOT_PATH).'#', '', $file_path), 100 100 'filesize' => $file_infos['filesize'], 101 101 'width' => $file_infos['width'],
Note: See TracChangeset
for help on using the changeset viewer.