[Fusionforge-commits] r10968 - trunk/src/common/docman/actions

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Wed Oct 13 17:42:45 CEST 2010


Author: nerville
Date: 2010-10-13 17:42:44 +0200 (Wed, 13 Oct 2010)
New Revision: 10968

Modified:
   trunk/src/common/docman/actions/addfile.php
Log:
fix is gfcommon is empty...

Modified: trunk/src/common/docman/actions/addfile.php
===================================================================
--- trunk/src/common/docman/actions/addfile.php	2010-10-13 15:22:30 UTC (rev 10967)
+++ trunk/src/common/docman/actions/addfile.php	2010-10-13 15:42:44 UTC (rev 10968)
@@ -57,7 +57,12 @@
 	exit_missing_param($_SERVER['HTTP_REFERER'],$missing_params,'docman');
 }
 
-$d = new Document($g, false, false,$gfcommon.'docman/engine/');
+if (empty($gfcommon)) {
+    $engine_dir = '../../common';
+} else {
+    $engine_dir = $gfcommon;
+}
+$d = new Document($g, false, false,$engine_dir.'/docman/engine/');
 if (!$d || !is_object($d)) {		
     $return_msg= _('Error getting blank document.');
     session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($return_msg));




More information about the Fusionforge-commits mailing list