fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12862]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12862]
Date: Fri, 13 Mar 2015 23:12:35 +0000

Revision: 12862
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12862
Author:   nelson224
Date:     2015-03-13 23:12:34 +0000 (Fri, 13 Mar 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uientity.inc.php

Modified: branches/dev-syncromind/property/inc/class.uientity.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uientity.inc.php 2015-03-13 
23:12:13 UTC (rev 12861)
+++ branches/dev-syncromind/property/inc/class.uientity.inc.php 2015-03-13 
23:12:34 UTC (rev 12862)
@@ -442,28 +442,7 @@
 
                        return $combos;
                }
-
                
-               private function _customize_documents(&$documents)
-               {
-                       foreach ($documents as &$document)
-                       {       
-                               if ($document['link'])
-                               {
-                                       $document['text'] = '<a 
href="'.$document['link'].'" target="_blank">'.$document['text'].'</a>';
-                               }
-
-                               if($document['children'])
-                               {
-                                       
$this->_customize_documents($document['children']);
-                               } 
-                               else 
-                               {
-                                       $document['type'] = "file";
-                               }
-                       }
-               }
-               
                public function get_documents()
                {
                        $entity_id = phpgw::get_var('entity_id', 'int');
@@ -473,19 +452,6 @@
                        $document = CreateObject('property.sodocument');
                        $documents = 
$document->get_files_at_location(array('entity_id'=>$entity_id,'cat_id'=>$cat_id,'num'=>$num));
 
-                       foreach ($documents as &$document)
-                       {
-                               if ($document['link'])
-                               {
-                                       $document['text'] = '<a 
href="'.$document['link'].'" target="_blank">'.$document['text'].'</a>';
-                               }
-
-                               if($document['children'])
-                               {
-                                       
$this->_customize_documents($document['children']);
-                               }
-                       }
-
                        return $documents;                              
                }
                




reply via email to

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