Changeset 1842


Ignore:
Timestamp:
12/15/09 15:46:52 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhoria do FM, tratamento de janelas diferenciado

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r1830 r1842  
    12591259                                                'checksubdirs'  => False, 
    12601260                                                'mime_type'     => False, 
     1261                                                'summary'       => True, 
    12611262                                                'nofiles'       => True 
    12621263                                        ) 
     
    12751276                                                $GLOBALS['phpgw']->db->db_addslashes($t->fake_leading_dirs_clean)."' AND name='". 
    12761277                                                $GLOBALS['phpgw']->db->db_addslashes($t->fake_name_clean)."'" . $this->extra_sql (VFS_SQL_UPDATE), __LINE__, __FILE__); 
    1277  
     1278                                 
    12781279                                        $set_attributes_array = array ( 
    12791280                                                'createdby_id' => $account_id, 
     
    13341335                                                ) 
    13351336                                        ); 
     1337                                        if (!(strpos(strtoupper($record['mime_type']),'IMAGE') === FALSE)) 
     1338                                        {                
     1339                                                $this->set_summary(array( 
     1340                                                        'string'=> $data['to'], 
     1341                                                        'relatives' => array ($data['relatives'][1]), 
     1342                                                        'summary'=> $record['summary'] 
     1343                                                )); 
     1344                                                unset($record['summary']); 
     1345                                        } 
    13361346                                } 
    13371347                                $this->correct_attributes (array( 
     
    20112021                        if ($GLOBALS['phpgw']->db->query($query) && $GLOBALS['phpgw']->db->next_record()){ 
    20122022                                $val = $GLOBALS['phpgw']->db->row(); 
    2013                                 echo $val['summary']; 
    2014  
    2015                         } 
    2016                         else 
    2017                         { 
    2018                                 echo $GLOBALS['phpgw']->db->error; 
    2019                                 return false; 
     2023                                return $val['summary']; 
    20202024                        } 
    20212025                } 
     
    25962600                        ); 
    25972601                        $dir = $p->fake_full_path; 
    2598  
     2602                        if($data['summary']) 
     2603                                $this->attributes['summary'] = 'summary'; 
    25992604 
    26002605                        /* If they pass us a file or 'nofiles' is set, return the info for $dir only */ 
     
    26622667                                        $rarray[0]['symlink'] = @readlink($p->real_full_path); 
    26632668                                } 
     2669                                if($data['summary']) 
     2670                                        unset($this->attributes['summary']); 
    26642671 
    26652672                                return $rarray; 
Note: See TracChangeset for help on using the changeset viewer.