Changeset 738 for trunk/Modules/File
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- Location:
- trunk/Modules/File
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/File/File.php
r737 r738 43 43 function DetectMimeType($FileName) 44 44 { 45 45 global $MimeTypes; 46 46 47 47 $Result = $MimeTypes[pathinfo($FileName, PATHINFO_EXTENSION)][0]; … … 140 140 'Parent' => array('Type' => 'TDirectory', 'Caption' => 'Nadřazený adresář', 'Default' => '', 'Null' => true), 141 141 'Subdirectories' => array('Type' => 'TDirectoryList', 'Caption' => 'Podadresáře', 'Default' => ''), 142 142 'Files' => array('Type' => 'TFileList', 'Caption' => 'Soubory', 'Default' => ''), 143 143 ), 144 144 )); … … 151 151 )); 152 152 $this->System->FormManager->RegisterFormType('TFile', array( 153 154 155 156 157 153 'Type' => 'Reference', 154 'Table' => 'File', 155 'Id' => 'Id', 156 'Name' => 'Name', 157 'Filter' => '1', 158 158 )); 159 159 $this->System->FormManager->RegisterFormType('TFileList', array( 160 161 162 163 164 160 'Type' => 'ManyToOne', 161 'Table' => 'File', 162 'Id' => 'Id', 163 'Ref' => 'Directory', 164 'Filter' => '1', 165 165 )); 166 166 $this->System->FormManager->RegisterFormType('TDirectoryList', array( 167 168 169 170 171 167 'Type' => 'ManyToOne', 168 'Table' => 'FileDirectory', 169 'Id' => 'Id', 170 'Ref' => 'Parent', 171 'Filter' => '1', 172 172 )); 173 173 } -
trunk/Modules/File/MimeTypes.php
r548 r738 43 43 'jpe' => array('image/jpeg', 'image/pjpeg'), 44 44 'js' => array('application/x-javascript'), 45 'json' => array('application/json'), 45 'json' => array('application/json'), 46 46 'lha' => array('application/octet-stream'), 47 47 'log' => array('text/plain', 'text/x-log'),
Note:
See TracChangeset
for help on using the changeset viewer.