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

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Fri Sep 10 09:59:12 CEST 2010


Author: nerville
Date: 2010-09-10 09:59:12 +0200 (Fri, 10 Sep 2010)
New Revision: 10447

Modified:
   trunk/src/common/docman/actions/addfile.php
   trunk/src/common/docman/actions/editfile.php
Log:
remove sys_engine_path

Modified: trunk/src/common/docman/actions/addfile.php
===================================================================
--- trunk/src/common/docman/actions/addfile.php	2010-09-10 07:52:11 UTC (rev 10446)
+++ trunk/src/common/docman/actions/addfile.php	2010-09-10 07:59:12 UTC (rev 10447)
@@ -28,7 +28,6 @@
 /* global variables used */
 global $g; //group object
 global $group_id; // id of group
-global $sys_engine_path; // path to the docman search engine
 
 $upload_dir = forge_get_config('ftp_upload_dir') . "/" . $g->getUnixName();
 
@@ -50,10 +49,7 @@
 if (!$title || !$description || (!$uploaded_data && !$file_url && (!$editor && !$name ) ))
 	exit_missing_param();
 
-if (!isset($sys_engine_path))
-	$sys_engine_path = dirname(__FILE__).'/../engine/';
-
-$d = new Document($g, false, false,$sys_engine_path);
+$d = new Document($g, false, false,$gfcommon.'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));

Modified: trunk/src/common/docman/actions/editfile.php
===================================================================
--- trunk/src/common/docman/actions/editfile.php	2010-09-10 07:52:11 UTC (rev 10446)
+++ trunk/src/common/docman/actions/editfile.php	2010-09-10 07:59:12 UTC (rev 10447)
@@ -52,11 +52,7 @@
         $urlparam = '&view=listfile&dirid='.$doc_group;
     }
 
-    $engine_path = '';
-    if (isset($sys_engine_path))
-        $engine_path = $sys_engine_path;
-
-	$d= new Document($g,$docid,false,$engine_path);
+	$d= new Document($g,$docid,false,$gfcommon.'docman/engine/');
 	if ($d->isError())
 	    session_redirect('/docman/?group_id='.$group_id.$urlparam.'&error_msg='.urlencode($d->getErrorMessage()));
 




More information about the Fusionforge-commits mailing list