小胡
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
8 deletions
-
core/class/table/table_resources.php
|
|
@ -885,16 +885,9 @@ class table_resources extends dzz_table |
|
|
|
//文件图标信息
|
|
|
|
$fileinfo['img'] = self::get_icosinfo_by_rid($fileinfo['rid']); |
|
|
|
if ($fileinfo['type'] == 'folder') { |
|
|
|
$fileinfo['type'] = '文件夹'; |
|
|
|
if ($currentfolder = C::t('folder')->fetch($fileinfo['oid'])) { |
|
|
|
$fileinfo['isgroup'] = ($currentfolder['flag'] == 'organization') ? true : false; |
|
|
|
} |
|
|
|
} elseif ($fileinfo['type'] == 'link') { |
|
|
|
$fileinfo['type'] = lang('type_link'); |
|
|
|
} elseif ($fileinfo['ext']) { |
|
|
|
$fileinfo['type'] = getFileTypeName($fileinfo['type'], $fileinfo['ext']); |
|
|
|
} else { |
|
|
|
$fileinfo['type'] = lang('undefined_file_type'); |
|
|
|
} |
|
|
|
if ($contains) { |
|
|
|
//文件大小信息
|
|
|
@ -911,6 +904,7 @@ class table_resources extends dzz_table |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
$fileinfo['type'] = getFileTypeName($fileinfo['type'], $fileinfo['ext']); |
|
|
|
} |
|
|
|
|
|
|
|
return $fileinfo; |
|
|
@ -1058,4 +1052,4 @@ function get_resources_info_by_fid($fid) |
|
|
|
{ |
|
|
|
return DB::fetch_first("select * from %t where oid = %d and `type` = 'folder' ", array($this->_table, $fid)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |