[Fusionforge-commits] r16148 - branches/Branch_5_2/src/common/docman

Franck VILLAUME nerville at fusionforge.org
Sat Aug 25 19:07:27 CEST 2012


Author: nerville
Date: 2012-08-25 19:07:26 +0200 (Sat, 25 Aug 2012)
New Revision: 16148

Modified:
   branches/Branch_5_2/src/common/docman/DocumentManager.class.php
Log:
fix trash initialization

Modified: branches/Branch_5_2/src/common/docman/DocumentManager.class.php
===================================================================
--- branches/Branch_5_2/src/common/docman/DocumentManager.class.php	2012-08-25 16:54:30 UTC (rev 16147)
+++ branches/Branch_5_2/src/common/docman/DocumentManager.class.php	2012-08-25 17:07:26 UTC (rev 16148)
@@ -178,9 +178,13 @@
 				if (isset($nbDocsTrashed)) {
 					$nbDocsLabel = '<span class="tabtitle-nw" title="'._('Number of deleted documents in this folder').'" >('.$nbDocsTrashed.')</span>';
 				}
-				$user = user_get_object($localDg->getCreated_by());
-				$lititle = _('Created_by:').$user->getRealName()._('; Last modified:').date(_('Y-m-d H:i'), $localDg->getLastModifyDate());
-				echo '<li id="leaf-'.$subGroupIdValue.'" class="'.$liclass.'">'.util_make_link($link, $localDg->getName(), array('class'=>'tabtitle-nw', 'title'=>$lititle)).$nbDocsLabel;
+				if ($localDg->getName() != '.trash') {
+					$user = user_get_object($localDg->getCreated_by());
+					$lititle = _('Created_by:').$user->getRealName()._('; Last modified:').date(_('Y-m-d H:i'), $localDg->getLastModifyDate());
+					echo '<li id="leaf-'.$subGroupIdValue.'" class="'.$liclass.'">'.util_make_link($link, $localDg->getName(), array('class'=>'tabtitle-nw', 'title'=>$lititle)).$nbDocsLabel;
+				} else {
+					echo '<li id="leaf-'.$subGroupIdValue.'" class="'.$liclass.'">'.util_make_link($link, $localDg->getName()).$nbDocsLabel;
+				}
 				if ($dg->getSubgroup($subGroupIdValue, $stateId)) {
 					echo '<ul>';
 					$this->getTree($selecteddir, $linkmenu, $subGroupIdValue);




More information about the Fusionforge-commits mailing list