[Fusionforge-commits] r10492 - in trunk/src: common/docman www/docman

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Thu Sep 16 09:47:49 CEST 2010


Author: nerville
Date: 2010-09-16 09:47:49 +0200 (Thu, 16 Sep 2010)
New Revision: 10492

Modified:
   trunk/src/common/docman/DocumentFactory.class.php
   trunk/src/www/docman/index.php
Log:
fix correct use of exit functions

Modified: trunk/src/common/docman/DocumentFactory.class.php
===================================================================
--- trunk/src/common/docman/DocumentFactory.class.php	2010-09-16 07:47:29 UTC (rev 10491)
+++ trunk/src/common/docman/DocumentFactory.class.php	2010-09-16 07:47:49 UTC (rev 10492)
@@ -178,7 +178,7 @@
 		$result = db_query_params ('SELECT * FROM docdata_vw ORDER BY title',
 					   array());
 		if (!$result) {
-			exit_error('Error', db_error());
+			exit_error('Error', db_error(),'docman');
 		}
 		
 		while ($arr = db_fetch_array($result)) {
@@ -201,7 +201,7 @@
 			ORDER BY doc_states.name ASC',
 					   array());
 		if (!$result) {
-			exit_error('error', db_error());
+			exit_error('error', db_error(),'docman');
 		}
 		
 		$return = array();

Modified: trunk/src/www/docman/index.php
===================================================================
--- trunk/src/www/docman/index.php	2010-09-16 07:47:29 UTC (rev 10491)
+++ trunk/src/www/docman/index.php	2010-09-16 07:47:49 UTC (rev 10492)
@@ -54,7 +54,7 @@
 
 /* is this group using docman ? */
 if (!$g->usesDocman())
-	exit_error(_('Error'),_('This project has turned off the Doc Manager.'),'home');
+	exit_disabled('home');
 
 $dirid = getIntFromRequest('dirid');
 if (empty($dirid))




More information about the Fusionforge-commits mailing list