[Fusionforge-commits] r10491 - trunk/src/www/include

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


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

Modified:
   trunk/src/www/include/exit.php
Log:
enhanced exit functions

Modified: trunk/src/www/include/exit.php
===================================================================
--- trunk/src/www/include/exit.php	2010-09-15 20:57:40 UTC (rev 10490)
+++ trunk/src/www/include/exit.php	2010-09-16 07:47:29 UTC (rev 10491)
@@ -41,16 +41,17 @@
 /**
  * exit_permission_denied() - Exit with permission denied error
  *
- * @param		string	$reason_descr
+ * @param	string	$reason_descr
+ * @param   string  toptab needed for navigation
  */
-function exit_permission_denied($reason_descr='') {
+function exit_permission_denied($reason_descr='',$toptab='') {
 	if(!session_loggedin()) {
 		exit_not_logged_in();
 	} else {
 		if (!$reason_descr) {
 			$reason_descr=_('This project\'s administrator will have to grant you permission to view this page.');
 		}
-		exit_error(_('Permission denied.'),$reason_descr);
+		exit_error(_('Permission denied.'),$reason_descr,$toptab);
 	}
 }
 
@@ -94,9 +95,10 @@
 
 /**
  * exit_disabled() - Exit with disabled feature error.
+ * @param   string  toptab needed for navigation
  */
-function exit_disabled() {
-	exit_error(_('Error - The Site Administrator has turned off this feature.'));
+function exit_disabled($toptab='') {
+	exit_error(_('Error'), _('The Site Administrator has turned off this feature.'),$toptab);
 }
 
 /**




More information about the Fusionforge-commits mailing list