Ignore:
Timestamp:
03/28/11 16:18:49 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1658 - Corrigido problema de salvar o myme type do arquivo no banco.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/filemanager/inc/class.vfs_functions.inc.php

    r3913 r3924  
    164164                } 
    165165 
    166                 function setRestricted(){ 
     166                function setRestricted() 
     167                { 
    167168                        $GLOBALS['phpgw_info']['flags'] = array 
    168169                                ( 
    169                                         'currentapp'    => 'filemanager', 
    170                                         'noheader'      => True, 
    171                                         'nonavbar' => True, 
    172                                         'nofooter'      => True, 
    173                                         'noappheader'   => True, 
     170                                        'currentapp'            => 'filemanager', 
     171                                        'noheader'              => True, 
     172                                        'nonavbar'              => True, 
     173                                        'nofooter'              => True, 
     174                                        'noappheader'   => True, 
    174175                                        'enable_browser_class'  => True 
    175176                                ); 
     
    432433                                { 
    433434                                        $_return[] = array( "true" => lang('renamed %1 to %2', $this->file ,$this->to ) ); 
     435                                         
     436                                        // Get Type Mime Type 
     437                                        $mimeType = $this->bo->vfs->get_ext_mime_type(array ('string' => $this->to ));  
     438                                         
     439                                        $this->bo->vfs->set_attributes( array( 
     440                                                                                                                        'string'                => $this->to, 
     441                                                                                                                        'relatives'     => array(RELATIVE_ALL), 
     442                                                                                                                        'attributes'    => array('mime_type' => $mimeType) 
     443                                         )); 
    434444                                } 
    435445                                else 
    436446                                { 
    437                                         $_return[] = array("error" => $this->file . " " . $this->to ); 
     447                                        $_return[] = array( "error"     => $this->file . " " . $this->to );      
    438448                                } 
    439449                        } 
    440450                        else 
     451                        { 
    441452                                $_return[] = array("error" => "whitout file "); 
     453                        } 
    442454                         
    443455                        echo serialize( $_return ); 
Note: See TracChangeset for help on using the changeset viewer.