[Fusionforge-commits] r13859 - trunk/src/common/docman

Franck VILLAUME nerville at fusionforge.org
Thu Jul 28 12:50:48 CEST 2011


Author: nerville
Date: 2011-07-28 12:50:48 +0200 (Thu, 28 Jul 2011)
New Revision: 13859

Modified:
   trunk/src/common/docman/DocumentGroup.class.php
Log:
add / in path

Modified: trunk/src/common/docman/DocumentGroup.class.php
===================================================================
--- trunk/src/common/docman/DocumentGroup.class.php	2011-07-28 09:59:01 UTC (rev 13858)
+++ trunk/src/common/docman/DocumentGroup.class.php	2011-07-28 10:50:48 UTC (rev 13859)
@@ -457,16 +457,16 @@
 	 * @access	public
 	 */
 	function getPath($url = false, $includename = true) {
-		$returnPath = '';
+		$returnPath = '/';
 		if ($this->getParentID()) {
 			$parentDg = new DocumentGroup($this->Group, $this->getParentID());
 			$returnPath = $parentDg->getPath($url);
 		}
 		if ($includename) {
 			if ($url) {
-				$returnPath .= '/'.util_make_link('/docman/?group_id='.$this->Group->getID().'&view=listfile&dirid='.$this->getID(),$this->getName());
+				$returnPath .= util_make_link('/docman/?group_id='.$this->Group->getID().'&view=listfile&dirid='.$this->getID(),$this->getName());
 			} else {
-				$returnPath .= '/'.$this->getName();
+				$returnPath .= $this->getName();
 			}
 		}
 		return $returnPath;




More information about the Fusionforge-commits mailing list