[Fusionforge-commits] r8706 - trunk/gforge/www/developer

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Jan 31 18:51:27 CET 2010


Author: aljeux
Date: 2010-01-31 18:51:27 +0100 (Sun, 31 Jan 2010)
New Revision: 8706

Modified:
   trunk/gforge/www/developer/index.php
Log:
developer page: small clean up and add translations

Modified: trunk/gforge/www/developer/index.php
===================================================================
--- trunk/gforge/www/developer/index.php	2010-01-31 17:24:29 UTC (rev 8705)
+++ trunk/gforge/www/developer/index.php	2010-01-31 17:51:27 UTC (rev 8706)
@@ -30,16 +30,15 @@
 require_once('../env.inc.php');
 require_once $gfwww.'include/pre.php';
 
-$user_id = getStringFromRequest('user_id');
-$form_dev = getStringFromRequest('form_dev');
+$user_id = getIntFromRequest('user_id');
 
 if (!$user_id) {
-	$user_id=$form_dev;
+	$user_id = getIntFromRequest('form_dev');
 }
 
 if (isset ($sys_noforcetype) && $sys_noforcetype) {
 	if (!$user_id) {
-		exit_error("Missing User Argument","A user must be specified for this page.");
+		exit_error(_('Missing User Argument'),_('A user must be specified for this page.'));
 	} else {
 		$user =& user_get_object($user_id);
 		if (!$user || !is_object($user) || $user->isError() || !$user->isActive()) {




More information about the Fusionforge-commits mailing list