phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/class.bodocument.php, 1.1.1.9


From: nomail
Subject: [Phpgroupware-cvs] property/class.bodocument.php, 1.1.1.9
Date: Sun, 23 May 2004 06:42:43 -0000

Update of /property
Modified Files:
        Branch: 
          class.bodocument.php

date: 2004/05/02 12:47:33;  author: sigurdne;  state: Exp;  lines: +3 -3

Log Message:
no message
=====================================================================
Index: property/class.bodocument.php
diff -u property/class.bodocument.php:1.1.1.8 
property/class.bodocument.php:1.1.1.9
--- property/class.bodocument.php:1.1.1.8       Fri Apr 30 17:35:55 2004
+++ property/class.bodocument.php       Sun May  2 12:47:33 2004
@@ -256,7 +256,7 @@
                        $this->uicols   = $this->so->uicols;
                        $cols_extra             = $this->so->cols_extra;
 
-                       $dateformat = 
$GLOBALS['phpgw_data']['user']['preferences']['common']['dateformat'];
+                       $dateformat = 
$GLOBALS['phpgw_data']['prefs'][$this->currentapp . '.dateformat'];
                        for ($i=0; $i<count($document); $i++)
                        {
                                
$location_data=$this->solocation->read_single($document[$i]['location_code']);
@@ -277,7 +277,7 @@
                                                                                
        'location_code' => $location_code,'doc_type'=>$this->doc_type));
                        $this->total_records = $this->so->total_records;
 
-                       $dateformat = 
$GLOBALS['phpgw_data']['user']['preferences']['common']['dateformat'];
+                       $dateformat = 
$GLOBALS['phpgw_data']['prefs'][$this->currentapp . '.dateformat'];
 
                        for ($i=0; $i<count($document); $i++)
                        {
@@ -292,7 +292,7 @@
                function read_single($document_id)
                {
                        $document                                               
= $this->so->read_single($document_id);
-                       $dateformat                                             
= $GLOBALS['phpgw_data']['user']['preferences']['common']['dateformat'];
+                       $dateformat                                             
= $GLOBALS['phpgw_data']['prefs'][$this->currentapp . '.dateformat'];
                        $document['document_date']              = 
$this->bocommon->show_date($document['document_date'],$dateformat);
                        $vendor                                                 
= 
$this->contacts->read_single_entry($document['vendor_id'],array('org_name'=>'org_name','email'=>'email'));
                        $document['vendor_name']                = 
$vendor[0]['org_name'];




reply via email to

[Prev in Thread] Current Thread [Next in Thread]