Changeset 3415

Show
Ignore:
Timestamp:
06/08/07 12:41:14 (19 months ago)
Author:
graphittie
Message:

#389 : 실행파일형 첨부파일 확장자 아이콘 출력 부분 오류.

  • property의 파일명 정보의 확장자를 이용하도록 변경. property의 파일명 정보의 확장자 정보는 readonly로 변경되고 '수정불가'라는 안내문구를 추가.
Location:
trunk/plugins
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/FM_Modern/editor.js

    r3372 r3415  
    25022502                '</dl>' + 
    25032503                '<dl class="line">' + 
    2504                     '<dt class="property-name"><label for="__ID__propertyObject1_filename1">' + _t('파일명') + '</label></dt>' + 
    2505                     '<dd><input type="text" class="input-text" id="__ID__propertyObject1_filename1" onkeyup="__EDITOR__.setProperty()" onkeypress="return preventEnter(event);" /></dd>' + 
     2504                    '<dt class="property-name"><label for="__ID__propertyObject1_filename1">' + _t('파일명(수정불가)') + '</label></dt>' + 
     2505                    '<dd><input type="text" class="input-text" id="__ID__propertyObject1_filename1" readonly="readonly" /></dd>' + 
    25062506                '</dl>' + 
    25072507            '</div>' + 
  • trunk/plugins/FM_TTML/index.php

    r3372 r3415  
    422422            break; 
    423423        default: 
    424             if (file_exists(ROOT . '/image/extension/' . getFileExtension($filename) . '.gif')) { 
    425                 return '<a href="' . ($useAbsolutePath ? $hostURL : '') . $blogURL . '/attachment/' . $filename . '">' . fireEvent('ViewAttachedFileExtension', '<img src="' . ($useAbsolutePath ? $hostURL : '') . $service['path'] . '/image/extension/' . getFileExtension($filename) . '.gif" />') . ' ' . htmlspecialchars($fileInfo['label']) . '</a>'; 
     424            if (file_exists(ROOT . '/image/extension/' . getFileExtension($fileInfo['label']) . '.gif')) { 
     425                return '<a href="' . ($useAbsolutePath ? $hostURL : '') . $blogURL . '/attachment/' . $filename . '">' . fireEvent('ViewAttachedFileExtension', '<img src="' . ($useAbsolutePath ? $hostURL : '') . $service['path'] . '/image/extension/' . getFileExtension($fileInfo['label']) . '.gif" />') . ' ' . htmlspecialchars($fileInfo['label']) . '</a>'; 
    426426            } else { 
    427427                return '<a href="' . ($useAbsolutePath ? $hostURL : '') . $blogURL . '/attachment/' . $filename . '">' . fireEvent('ViewAttachedFileExtension', '<img src="' . ($useAbsolutePath ? $hostURL : '') . $service['path'] . '/image/extension/unknown.gif" />') . ' ' . htmlspecialchars($fileInfo['label']) . '</a>';