[Fusionforge-commits] r8834 - trunk/gforge/www/docman

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Feb 18 16:35:47 CET 2010


Author: lolando
Date: 2010-02-18 16:35:46 +0100 (Thu, 18 Feb 2010)
New Revision: 8834

Modified:
   trunk/gforge/www/docman/index.php
Log:
Fix display of docs when some doc groups contain apostrophes in their name

Modified: trunk/gforge/www/docman/index.php
===================================================================
--- trunk/gforge/www/docman/index.php	2010-02-18 13:44:01 UTC (rev 8833)
+++ trunk/gforge/www/docman/index.php	2010-02-18 15:35:46 UTC (rev 8834)
@@ -30,7 +30,7 @@
 	if (is_array(@$nested_groups[$docgroup])) {
 		foreach ($nested_groups[$docgroup] as $dg) {
 			echo "
-		['".'<span class="JSCookTreeFolderClosed"><i><img alt="" src="\' + ctThemeXPBase + \'folder1.gif" /></i></span><span class="JSCookTreeFolderOpen"><i><img alt="" src="\' + ctThemeXPBase + \'folderopen1.gif"></i></span>'."', '".$dg->getName()."', '#', '', '',";
+		['".'<span class="JSCookTreeFolderClosed"><i><img alt="" src="\' + ctThemeXPBase + \'folder1.gif" /></i></span><span class="JSCookTreeFolderOpen"><i><img alt="" src="\' + ctThemeXPBase + \'folderopen1.gif"></i></span>'."', '".addslashes($dg->getName())."', '#', '', '',";
 			docman_recursive_display($dg->getID());
 			if (isset($nested_docs[$dg->getID()]) && is_array($nested_docs[$dg->getID()])) {
 				foreach ($nested_docs[$dg->getID()] as $d) {




More information about the Fusionforge-commits mailing list