Ignore:
Timestamp:
08/09/11 17:14:05 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #2199 - Corrigido bug para criar e mover arquivos dentro do filemanager

File:
1 edited

Legend:

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

    r4228 r4915  
    582582                $return['files'] = $output; 
    583583                $return['quota']['quotaSize'] = ($quota * 1024 * 1024); 
     584                //echo serialize(htmlspecialchars_decode(htmlentities($return))); 
    584585                echo serialize($return); 
    585586        } 
     
    609610                        $return[] = $dir['directory'] . $dir['name']; 
    610611                sort(&$return, SORT_STRING); 
     612 
    611613                echo serialize($return); 
    612614        } 
     
    752754        } 
    753755 
    754         function createdir() { 
     756        function createdir() 
     757        { 
    755758                if ($this->bo->badchar = $this->bo->bad_chars($this->filename, True, True)) { 
    756759                        echo lang('Error:') . $this->bo->html_encode(lang('Directory names cannot contain "%1"', $badchar), 1); 
     
    771774                $fileinfo = $ls_array[0]; 
    772775 
    773                 if ($fileinfo['name']) { 
     776                if ($fileinfo['name']) 
     777                { 
    774778                        if ($fileinfo['mime_type'] != 'Directory') { 
    775779                                echo lang('Error:') . lang('%1 already exists as a file', $fileinfo['name']); 
     
    777781                                echo lang('Error:') . lang('Directory %1 already exists', $fileinfo['name']); 
    778782                        } 
    779                 } else { 
     783                } 
     784                else 
     785                { 
    780786                        $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 
    781787 
    782                         if ($this->bo->vfs->mkdir(array('string' => $this->filename))) { 
    783                                 echo lang('Created directory %1', $this->disppath . '/' . $this->filename); 
    784                         } else { 
     788                        if ($this->bo->vfs->mkdir(array('string' => $this->filename))) 
     789                        { 
     790                                echo "True"; 
     791                                //echo lang('Created directory %1', $this->disppath . '/' . $this->filename); 
     792                        } 
     793                        else 
     794                        { 
    785795                                echo lang('Error:') . lang('Could not create %1', $this->disppath . '/' . $this->filename); 
    786796                        } 
    787797                } 
    788                 echo lang('Directory created'); 
     798                 
    789799        } 
    790800 
Note: See TracChangeset for help on using the changeset viewer.