Ignore:
Timestamp:
10/20/09 15:57:09 (15 years ago)
Author:
eduardoalex
Message:

Ticket #686 - adicionado config do tamanho do aruqivo de foto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.user.inc.php

    r1516 r1521  
    532532                                { 
    533533                                         
    534                                         if ($_FILES['photo']['size'] > 10000) 
     534                                        $size_conf = $this->current_config['expressoAdmin_photo_length'] == '' ? 10000:$this->current_config['expressoAdmin_photo_length'] ; 
     535                                        if ($_FILES['photo']['size'] > $size_conf) 
    535536                                        { 
    536537                                                $return['status'] = false; 
    537                                                 $return['msg'] .= $this->functions->lang('User photo could not be save because is bigger the 10 kb') . '.'; 
     538                                                $return['msg'] .= $this->functions->lang('User photo could not be save because is bigger the').' '.($size_conf/1024).' kb.'; 
    538539                                        } 
    539540                                        else 
Note: See TracChangeset for help on using the changeset viewer.