phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.uidrawing.inc.php, 1.3.2.2


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.uidrawing.inc.php, 1.3.2.2
Date: Tue, 9 Nov 2004 15:30:25 +0100

Update of /property/inc
Modified Files:
        Branch: proposed-0_9_18-branch
          class.uidrawing.inc.php

date: 2004/11/09 14:30:25;  author: sigurdne;  state: Exp;  lines: +5 -8

Log Message:
no message
=====================================================================
Index: property/inc/class.uidrawing.inc.php
diff -u property/inc/class.uidrawing.inc.php:1.3.2.1 
property/inc/class.uidrawing.inc.php:1.3.2.2
--- property/inc/class.uidrawing.inc.php:1.3.2.1        Fri Oct 29 18:45:17 2004
+++ property/inc/class.uidrawing.inc.php        Tue Nov  9 14:30:25 2004
@@ -382,27 +382,24 @@
                                'relatives' => Array(RELATIVE_NONE)
                                )))
                        {
-                               $filename       = current(explode('.', 
basename($values['drawing_name'])));
 
-                               $filetype       = 
$this->bo->vfs->file_type(array(
-                                                       'string' => $file,
-                                                       'relatives' => 
Array(RELATIVE_NONE)));
 
                                $size           = 
$this->bo->vfs->get_size(array(
                                                        'string' => $file,
                                                        'relatives' => 
Array(RELATIVE_NONE),
                                                        'checksubdirs' => 
True));
 
-                               $browser = CreateObject('phpgwapi.browser');
-                               
$browser->content_header($filename,$filetype,$size);
-
                                $document= $this->bo->vfs->read(array(
                                        'string' => $file,
                                        'relatives' => Array(RELATIVE_NONE)));
 
+                               $filename       = 
basename($values['document_name']);
+                               $filetype = array_pop(explode('.', 
basename($file)));
+                               $browser = CreateObject('phpgwapi.browser');
+                               
$browser->content_header($filename,$filetype,$size);
+
                                echo $document;
 
-                               flush();
                        }
                }
 




reply via email to

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