Changeset 738 for trunk/Modules/File


Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
Location:
trunk/Modules/File
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/File/File.php

    r737 r738  
    4343  function DetectMimeType($FileName)
    4444  {
    45         global $MimeTypes;
     45    global $MimeTypes;
    4646
    4747    $Result = $MimeTypes[pathinfo($FileName, PATHINFO_EXTENSION)][0];
     
    140140       'Parent' => array('Type' => 'TDirectory', 'Caption' => 'Nadřazený adresář', 'Default' => '', 'Null' => true),
    141141        'Subdirectories' => array('Type' => 'TDirectoryList', 'Caption' => 'Podadresáře', 'Default' => ''),
    142         'Files' => array('Type' => 'TFileList', 'Caption' => 'Soubory', 'Default' => ''),
     142        'Files' => array('Type' => 'TFileList', 'Caption' => 'Soubory', 'Default' => ''),
    143143      ),
    144144    ));
     
    151151    ));
    152152    $this->System->FormManager->RegisterFormType('TFile', array(
    153                 'Type' => 'Reference',
    154                 'Table' => 'File',
    155                 'Id' => 'Id',
    156                 'Name' => 'Name',
    157                 'Filter' => '1',
     153      'Type' => 'Reference',
     154      'Table' => 'File',
     155      'Id' => 'Id',
     156      'Name' => 'Name',
     157      'Filter' => '1',
    158158    ));
    159159    $this->System->FormManager->RegisterFormType('TFileList', array(
    160         'Type' => 'ManyToOne',
    161         'Table' => 'File',
    162         'Id' => 'Id',
    163         'Ref' => 'Directory',
    164         'Filter' => '1',
     160      'Type' => 'ManyToOne',
     161      'Table' => 'File',
     162      'Id' => 'Id',
     163      'Ref' => 'Directory',
     164      'Filter' => '1',
    165165    ));
    166166    $this->System->FormManager->RegisterFormType('TDirectoryList', array(
    167                 'Type' => 'ManyToOne',
    168                 'Table' => 'FileDirectory',
    169                 'Id' => 'Id',
    170                 'Ref' => 'Parent',
    171                 'Filter' => '1',
     167      'Type' => 'ManyToOne',
     168      'Table' => 'FileDirectory',
     169      'Id' => 'Id',
     170      'Ref' => 'Parent',
     171      'Filter' => '1',
    172172    ));
    173173  }
  • trunk/Modules/File/MimeTypes.php

    r548 r738  
    4343  'jpe'   => array('image/jpeg', 'image/pjpeg'),
    4444  'js'    => array('application/x-javascript'),
    45   'json'  => array('application/json'), 
     45  'json'  => array('application/json'),
    4646  'lha'   => array('application/octet-stream'),
    4747  'log'   => array('text/plain', 'text/x-log'),
Note: See TracChangeset for help on using the changeset viewer.