Changeset 5059 for branches/2.2/phpgwapi


Ignore:
Timestamp:
09/06/11 11:55:20 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #2263 - Corrigido total usado dentro do filemanager (não estava contabilizando corretamente)

Location:
branches/2.2/phpgwapi/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/phpgwapi/inc/class.vfs_shared.inc.php

    r2 r5059  
    419419 
    420420                /*! 
     421                * @function get_size_all 
     422                * @abstract Determine size of location 
     423                * @owner_id string      uid owner 
     424                */ 
     425                 
     426                function get_size_all($owner_id) { return 0; } 
     427                 
     428                /*! 
    421429                 * @function get_size 
    422430                 * @abstract Determine size of location 
  • branches/2.2/phpgwapi/inc/class.vfs_sql.inc.php

    r3743 r5059  
    25122512                        return $size; 
    25132513                } 
     2514                 
     2515                function get_size_all($owner_id) 
     2516                { 
     2517                        $query = $GLOBALS['phpgw']->db->query ("SELECT Sum(size) FROM phpgw_vfs WHERE owner_id = '".$owner_id."'" . 
     2518                                                                                                        $this->extra_sql(array ('query_text' => VFS_SQL_SELECT))); 
     2519                        $GLOBALS['phpgw']->db->next_record (); 
     2520                         
     2521                        $size = $GLOBALS['phpgw']->db->Record[0];                        
     2522                         
     2523                        return $size; 
     2524                }                
    25142525 
    25152526                /*return the total number of files in path*/ 
Note: See TracChangeset for help on using the changeset viewer.