[Fusionforge-commits] r10490 - trunk/src/www/docman

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Wed Sep 15 22:57:40 CEST 2010


Author: nerville
Date: 2010-09-15 22:57:40 +0200 (Wed, 15 Sep 2010)
New Revision: 10490

Modified:
   trunk/src/www/docman/index.php
Log:
start use error_exit correctly

Modified: trunk/src/www/docman/index.php
===================================================================
--- trunk/src/www/docman/index.php	2010-09-15 17:00:25 UTC (rev 10489)
+++ trunk/src/www/docman/index.php	2010-09-15 20:57:40 UTC (rev 10490)
@@ -54,7 +54,7 @@
 
 /* is this group using docman ? */
 if (!$g->usesDocman())
-	exit_error(_('Error'),_('This project has turned off the Doc Manager.'));
+	exit_error(_('Error'),_('This project has turned off the Doc Manager.'),'home');
 
 $dirid = getIntFromRequest('dirid');
 if (empty($dirid))
@@ -62,19 +62,19 @@
 
 $df = new DocumentFactory($g);
 if ($df->isError())
-	exit_error(_('Error'),$df->getErrorMessage());
+	exit_error(_('Error'),$df->getErrorMessage(),'docman');
 
 $dgf = new DocumentGroupFactory($g);
 if ($dgf->isError())
-	exit_error(_('Error'),$dgf->getErrorMessage());
+	exit_error(_('Error'),$dgf->getErrorMessage(),'docman');
 
 $nested_groups = $dgf->getNested();
 if ($dgf->isError())
-    exit_error(_('Error'),$dgf->getErrorMessage());
+    exit_error(_('Error'),$dgf->getErrorMessage(),'docman');
 
 $dgh = new DocumentGroupHTML($g);
 if ($dgh->isError())
-	exit_error(_('Error'),$dgh->getErrorMessage());
+	exit_error(_('Error'),$dgh->getErrorMessage(),'docman');
 
 $d_arr =& $df->getDocuments();
 if (!$d_arr || count($d_arr) <1)




More information about the Fusionforge-commits mailing list