Changeset 1557


Ignore:
Timestamp:
10/29/09 15:10:17 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias no módulo filemanager, implementação de quota!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/inc/class.uifilemanager.inc.php

    r1556 r1557  
    10561056                                        { 
    10571057                                                // upload button 
    1058                                                 if (($this->usedSpace()*1024*1024) > $this->current_config['filemanager_quota_size']) 
     1058                                                $total = ($this->current_config['filemanager_quota_size'])*1024*1024; 
     1059                                                $usedSpace = $this->usedSpace(); 
     1060                                                if ($usedSpace < $total) 
    10591061                                                        $toolbar.=$this->inputImage('upload','upload',lang('Upload')); 
    10601062                                        } 
     
    11621164                function fileUpload() 
    11631165                { 
    1164                         if (($this->usedSpace()*1024*1024) > $this->current_config['filemanager_quota_size']) 
     1166                        if ($this->usedSpace() > ($this->current_config['filemanager_quota_size'])*1024*1024) 
    11651167                                echo lang('You exceded the quota'); 
    11661168                        else 
Note: See TracChangeset for help on using the changeset viewer.