[Fusionforge-commits] FusionForge branch master updated. bad542320268688d986d9fd4844ea5d3257aff38

Alain Peyrat aljeux at fusionforge.org
Fri May 3 16:43:06 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  bad542320268688d986d9fd4844ea5d3257aff38 (commit)
      from  a9433691e4778f683393a889ca16920acffd70ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bad542320268688d986d9fd4844ea5d3257aff38
Author: Alain Peyrat <alain.peyrat at alcatel-lucent.com>
Date:   Fri May 3 16:41:42 2013 +0200

    Mostly strings changes for consistency

diff --git a/src/www/pm/reporting/index.php b/src/www/pm/reporting/index.php
index 9987717..6f2df94 100644
--- a/src/www/pm/reporting/index.php
+++ b/src/www/pm/reporting/index.php
@@ -133,8 +133,6 @@ AND project_group_list.group_id=$3 ',
 
 		GraphIt($names, $values, _('Average duration for closed tasks (days)'));
 
-		echo "<p />";
-
 		for ($counter=1; $counter<=$span; $counter++) {
 
 			$start=($time_now-($counter*$sub_duration));
@@ -156,8 +154,6 @@ AND project_group_list.group_id=$3 ',
 
 		GraphIt($names, $values, _('Number of started tasks'));
 
-		echo "<p />";
-
 		for ($counter=1; $counter<=$span; $counter++) {
 
 			$start=($time_now-($counter*$sub_duration));
@@ -181,19 +177,17 @@ AND project_group_list.group_id=$3 ',
 
 		GraphIt($names, $values, _('Number of tasks still not completed'));
 
-		echo "<p />";
-
 		pm_footer(array());
 
 	} elseif ($what=="subproject") {
 		$qpa1 = db_construct_qpa (false,
-					  'SELECT project_group_list.project_name AS Subproject, count(*) AS Count
+					  'SELECT project_group_list.project_name AS subproject, count(*) AS Count
 FROM project_group_list,project_task
 WHERE project_group_list.group_project_id=project_task.group_project_id
 AND project_task.status_id = 1
 AND project_group_list.group_id=$1
 AND start_date >= $2
-GROUP BY Subproject',
+GROUP BY subproject',
 					  array ($group_id,
 						 $period_threshold)) ;
 		$qpa2 = db_construct_qpa(false, 'SELECT project_group_list.project_name AS Subproject, count(*) AS Count
@@ -202,7 +196,7 @@ WHERE project_group_list.group_project_id=project_task.group_project_id
 AND project_task.status_id <> 3
 AND project_group_list.group_id=$1
 AND start_date >= $2
-GROUP BY Subproject',
+GROUP BY subproject',
 					  array ($group_id,
 						 $period_threshold)) ;
 
@@ -212,7 +206,7 @@ GROUP BY Subproject',
 			  _('All Tasks By Category'), $qpa2);
 
 	} elseif ($what=="tech") {
-		$qpa1 = db_construct_qpa(false, 'SELECT users.user_name AS Technician, count(*) AS Count
+		$qpa1 = db_construct_qpa(false, 'SELECT users.user_name AS technician, count(*) AS Count
 FROM users,project_group_list,project_task,project_assigned_to
 WHERE users.user_id=project_assigned_to.assigned_to_id
 AND project_assigned_to.project_task_id=project_task.project_task_id
@@ -220,11 +214,11 @@ AND project_task.group_project_id=project_group_list.group_project_id
 AND project_task.status_id = 1
 AND project_group_list.group_id=$1
 AND start_date >= $2
-GROUP BY Technician',
+GROUP BY technician',
 					  array ($group_id,
 						 $period_threshold)) ;
 
-		$qpa2 = db_construct_qpa(false, 'SELECT users.user_name AS Technician, count(*) AS Count
+		$qpa2 = db_construct_qpa(false, 'SELECT users.user_name AS technician, count(*) AS Count
 FROM users,project_group_list,project_task,project_assigned_to
 WHERE users.user_id=project_assigned_to.assigned_to_id
 AND project_assigned_to.project_task_id=project_task.project_task_id
@@ -232,7 +226,7 @@ AND project_task.group_project_id=project_group_list.group_project_id
 AND project_task.status_id <> 3
 AND project_group_list.group_id=$1
 AND start_date >= $2
-GROUP BY Technician',
+GROUP BY technician',
 					  array ($group_id,
 						 $period_threshold)) ;
 
diff --git a/src/www/search/index.php b/src/www/search/index.php
index 5a1fdf9..bd82223 100644
--- a/src/www/search/index.php
+++ b/src/www/search/index.php
@@ -79,5 +79,5 @@ $renderer = $searchManager->getSearchRenderer($type_of_search, $words, $offset,
 if ($renderer) {
 	$renderer->flush();
 } else {
-	exit_error(_('Error - Invalid search'));
+	exit_error(_('Error: Invalid search'));
 }
diff --git a/src/www/snippet/add_snippet_to_package.php b/src/www/snippet/add_snippet_to_package.php
index a193f87..949bcf2 100644
--- a/src/www/snippet/add_snippet_to_package.php
+++ b/src/www/snippet/add_snippet_to_package.php
@@ -53,7 +53,7 @@ if (session_loggedin()) {
 
 	if (!$snippet_package_version_id) {
 		//make sure the package id was passed in
-		echo '<p class="error">' ._('Error - snippet_package_version_id missing') .'</p>';
+		echo '<p class="error">' ._('Error: snippet_package_version_id missing') .'</p>';
 		handle_add_exit();
 	}
 
@@ -69,7 +69,7 @@ if (session_loggedin()) {
 				"WHERE submitted_by=$1 AND ".
 				"snippet_package_version_id=$2", array(user_getid(), $snippet_package_version_id));
 			if (!$result || db_numrows($result) < 1) {
-				echo '<p class="error">' ._('Error - Only the creator of a package version can add snippets to it.').'</p>';
+				echo '<p class="error">' ._('Error: Only the creator of a package version can add snippets to it.').'</p>';
 				handle_add_exit();
 			}
 
@@ -79,7 +79,7 @@ if (session_loggedin()) {
 			$result=db_query_params ('SELECT * FROM snippet_version WHERE snippet_version_id=$1',
 			array($snippet_version_id));
 			if (!$result || db_numrows($result) < 1) {
-				echo '<p class="error">' ._('Error - That snippet doesn\'t exist.').'</p>';
+				echo '<p class="error">' ._('Error: That snippet doesn\'t exist.').'</p>';
 				echo util_make_link ('/snippet/add_snippet_to_package.php?snippet_package_version_id='.$snippet_package_version_id,_('Back To Add Page'));
 				handle_add_exit();
 			}
@@ -93,7 +93,7 @@ AND snippet_version_id=$2',
 			array($snippet_package_version_id,
 				$snippet_version_id));
 			if ($result && db_numrows($result) > 0) {
-				echo '<p class="error">'._('Error - That snippet was already added to this package.').'</p>';
+				echo '<p class="error">'._('Error: That snippet was already added to this package.').'</p>';
 				echo util_make_url ('/snippet/add_snippet_to_package.php?snippet_package_version_id='.$snippet_package_version_id,_('Back To Add Page'));
 				handle_add_exit();
 			}
@@ -105,13 +105,12 @@ AND snippet_version_id=$2',
 VALUES ($1, $2)", array($snippet_package_version_id, $snippet_version_id));
 
 			if (!$result) {
-				$feedback .= _('ERROR DOING SNIPPET VERSION INSERT!');
-				echo db_error();
+				$feedback .= _('Error doing snippet version insert').' '.db_error();
 			} else {
 				$feedback .= _('Snippet Version Added Successfully.');
 			}
 		} else {
-			echo '<p class="error">' ._('Error - Go back and fill in all the information').'</p>';
+			echo '<p class="error">' ._('Error: Go back and fill in all the information').'</p>';
 			echo util_make_link ('/snippet/add_snippet_to_package.php?snippet_package_version_id='.$snippet_package_version_id,_('Back To Add Page'));
 			handle_add_exit();
 		}
@@ -126,7 +125,7 @@ AND snippet_package_version.snippet_package_version_id=$1',
 
 	?>
 	<p>
-	<strong><?php echo _('Package:'); ?></strong><br />
+	<strong><?php echo _('Package')._(':'); ?></strong><br />
 	<?php echo db_result($result,0,'name') . ' -  ' . db_result($result,0,'version'); ?></p>
 	<p><?php echo _('You can use this form repeatedly to keep adding snippets to your package.'); ?></p>
 	<p><?php echo _('The "Snippet Version ID" is the unique ID number that is shown next to a specific version of a snippet on the browse pages.'); ?></p>
@@ -165,7 +164,7 @@ for ($i=0; $i<$combolistrows; $i++)
 	<tr><td colspan="2" class="align-center">
 		<strong><?php echo _('Make sure all info is complete and accurate'); ?></strong>
 		<br />
-		<input type="submit" name="submit" value="<?php echo _('SUBMIT'); ?>" />
+		<input type="submit" name="submit" value="<?php echo _('Submit'); ?>" />
 	</td></tr>
 	</table></form></p>
 	<?php
diff --git a/src/www/snippet/addversion.php b/src/www/snippet/addversion.php
index 1c6fe6c..ceca9e3 100644
--- a/src/www/snippet/addversion.php
+++ b/src/www/snippet/addversion.php
@@ -36,7 +36,7 @@ if (session_loggedin()) {
 		$result=db_query_params ('SELECT * FROM snippet WHERE snippet_id=$1',
 			array($id));
 		if (!$result || db_numrows($result) < 1) {
-			exit_error(_('Error - snippet doesn\'t exist'));
+			exit_error(_('Error: snippet doesn\'t exist'));
 		}
 
 		/*
@@ -68,13 +68,13 @@ if (session_loggedin()) {
 								  time(),
 								  htmlspecialchars($code)));
 				if (!$result) {
-					$error_msg .= _('ERROR DOING SNIPPET VERSION INSERT! ').db_error();
+					$error_msg .= _('Error doing snippet version insert').' '.db_error();
 				} else {
 					form_release_key(getStringFromRequest("form_key"));
 					$feedback .= _('Snippet Version Added Successfully.');
 				}
 			} else {
-				exit_error(_('Error - Go back and fill in all the information'));
+				exit_error(_('Error: Go back and fill in all the information'));
 			}
 
 		}
@@ -95,18 +95,18 @@ if (session_loggedin()) {
 			<input type="text" name="version" size="10" maxlength="15" />
 		</td></tr>
 
-		<tr><td colspan="2"><strong><?php echo _('Changes:'); ?></strong><br />
+		<tr><td colspan="2"><strong><?php echo _('Changes')._(':'); ?></strong><br />
 			<textarea name="changes" rows="5" cols="45"></textarea>
 		</td></tr>
 
-		<tr><td colspan="2"><strong><?php echo _('Paste the Code Here:'); ?></strong><br />
+		<tr><td colspan="2"><strong><?php echo _('Paste the Code Here')._(':'); ?></strong><br />
 			<textarea name="code" rows="30" cols="85"></textarea>
 		</td></tr>
 
 		<tr><td colspan="2" class="align-center">
 			<strong><?php echo _('Make sure all info is complete and accurate'); ?></strong>
 			<br />
-			<input type="submit" name="submit" value="<?php echo _('SUBMIT'); ?>" />
+			<input type="submit" name="submit" value="<?php echo _('Submit'); ?>" />
 		</td></tr>
 		</table></form></p>
 		<?php
@@ -124,7 +124,7 @@ if (session_loggedin()) {
 		$result=db_query_params ('SELECT * FROM snippet_package WHERE snippet_package_id=$1',
 			array($id));
 		if (!$result || db_numrows($result) < 1) {
-			exit_error(_('Error - snippet_package doesn\'t exist'));
+			exit_error(_('Error: snippet_package doesn\'t exist'));
 		}
 
 		if (getStringFromRequest('post_changes')) {
@@ -151,7 +151,7 @@ if (session_loggedin()) {
 								  time()));
 				if (!$result) {
 					//error in database
-					$error_msg .= _('ERROR DOING SNIPPET PACKAGE VERSION INSERT! ').db_error();
+					$error_msg .= _('Error doing snippet package version insert').' '.db_error();
 					snippet_header(array('title'=>_('New snippet package')));
 					snippet_footer(array());
 					exit;
@@ -171,7 +171,7 @@ if (session_loggedin()) {
 
 <script type="text/javascript">/* <![CDATA[ */
 function show_add_snippet_box() {
-	newWindow = open("","occursDialog","height=500,width=300,scrollbars=yes,resizable=yes");
+	var newWindow = open("","occursDialog","height=500,width=300,scrollbars=yes,resizable=yes");
 	newWindow.location=('/snippet/add_snippet_to_package.php?snippet_package_version_id=<?php
 			echo $snippet_package_version_id; ?>');
 }
@@ -195,7 +195,7 @@ function show_add_snippet_box() {
 
 			} else {
 				form_release_key(getStringFromRequest("form_key"));
-				exit_error( _('Error - Go back and fill in all the information'));
+				exit_error( _('Error: Go back and fill in all the information'));
 			}
 
 		}
@@ -218,14 +218,14 @@ function show_add_snippet_box() {
 			<input type="text" name="version" size="10" maxlength="15" />
 		</td></tr>
 
-		<tr><td colspan="2"><strong><?php echo _('Changes:'); ?></strong><br />
+		<tr><td colspan="2"><strong><?php echo _('Changes')._(':'); ?></strong><br />
 			<textarea name="changes" rows="5" cols="45"></textarea>
 		</td></tr>
 
 		<tr><td colspan="2" class="align-center">
 			<strong><?php echo _('Make sure all info is complete and accurate'); ?></strong>
 			<br />
-			<input type="submit" name="submit" value="<?php echo _('SUBMIT'); ?>" />
+			<input type="submit" name="submit" value="<?php echo _('Submit'); ?>" />
 		</td></tr>
 		</table></form></p>
 		<?php
@@ -234,13 +234,11 @@ function show_add_snippet_box() {
 
 
 	} else {
-		exit_error(_('Error - was the URL or form mangled??'));
+		exit_error(_('Error: was the URL or form mangled??'));
 	}
 
 } else {
-
 	exit_not_logged_in();
-
 }
 
 // Local Variables:
diff --git a/src/www/snippet/browse.php b/src/www/snippet/browse.php
index c99f1e4..ee2d8e9 100644
--- a/src/www/snippet/browse.php
+++ b/src/www/snippet/browse.php
@@ -29,6 +29,7 @@ require_once $gfwww.'snippet/snippet_utils.php';
  * createSnippetQuery - Creates the SQL query for loading data about snippets
  *
  * @param	string	clause - the last part of the where clause
+ * @return string
  */
 function createSnippetQuery($clause) {
 	return "SELECT users.realname,users.user_name,snippet.description,snippet.snippet_id,snippet.name FROM snippet,users WHERE users.user_id=snippet.created_by AND ".$clause;
@@ -38,6 +39,7 @@ function createSnippetQuery($clause) {
  * createPackageQuery - Creates the SQL query for loading data about packages
  *
  * @param	string	clause - the last part of the where clause
+ * @return string
  */
 function createPackageQuery($clause) {
 	return "SELECT users.realname,users.user_name,users.user_id,snippet_package.description,snippet_package.snippet_package_id,snippet_package.name FROM snippet_package,users WHERE users.user_id=snippet_package.created_by AND ".$clause;
@@ -65,7 +67,7 @@ if ($by=='lang') {
 
 	echo '<h2>' .sprintf(_('Snippets by category: %1$s'), $SCRIPT_CATEGORY[$cat]).'</h2>';
 } else {
-	exit_error(_('Error - bad url?'));
+	exit_error(_('Error: bad url?'));
 }
 
 $result = db_query_qpa ($qpa) ;
diff --git a/src/www/snippet/delete.php b/src/www/snippet/delete.php
index 5060432..8057997 100644
--- a/src/www/snippet/delete.php
+++ b/src/www/snippet/delete.php
@@ -45,7 +45,7 @@ if (session_loggedin()) {
 			"WHERE submitted_by=$1 AND ".
 			"snippet_package_version_id=$2", array(user_getid(), $snippet_package_version_id));
 		if (!$result || db_numrows($result) < 1) {
-			echo '<p class="error">Error - Only the creator of a package version can delete snippets from it.</p>';
+			echo '<p class="error">Error: Only the creator of a package version can delete snippets from it.</p>';
 			snippet_footer(array());
 			exit;
 		} else {
@@ -57,7 +57,7 @@ AND snippet_package_version_id=$2',
 			array($snippet_version_id,
 				$snippet_package_version_id));
 			if (!$result || db_affected_rows($result) < 1) {
-				echo '<p class="error">Error - That snippet doesn\'t exist in this package.</p>';
+				echo '<p class="error">Error: That snippet doesn\'t exist in this package.</p>';
 				snippet_footer(array());
 				exit;
 			} else {
@@ -76,7 +76,7 @@ AND snippet_package_version_id=$2',
 		$result=db_query_params("SELECT * FROM snippet_version ".
 			"WHERE snippet_version_id=$1 AND submitted_by=$2", array($snippet_version_id, user_getid()));
 		if (!$result || db_numrows($result) < 1) {
-			echo '<p class="error">Error - That snippet doesn\'t exist.</p>';
+			echo '<p class="error">Error: That snippet doesn\'t exist.</p>';
 			snippet_footer(array());
 			exit;
 		} else {
@@ -111,7 +111,7 @@ AND snippet_package_version_id=$2',
 			"snippet_package_version_id=$2", array(user_getid(), $snippet_package_version_id));
 		if (!$result || db_numrows($result) < 1) {
 			//they don't own it or it's not found
-			echo '<p class="error">Error - Only the creator of a package version can delete it.</p>';
+			echo '<p class="error">Error: Only the creator of a package version can delete it.</p>';
 			snippet_footer(array());
 			exit;
 		} else {
@@ -139,7 +139,7 @@ AND snippet_package_version_id=$2',
 			exit;
 		}
 	} else {
-		exit_error(_('Error - mangled URL?'));
+		exit_error(_('Error: mangled URL?'));
 	}
 
 } else {
diff --git a/src/www/snippet/detail.php b/src/www/snippet/detail.php
index da434c0..70749d0 100644
--- a/src/www/snippet/detail.php
+++ b/src/www/snippet/detail.php
@@ -54,7 +54,7 @@ ORDER BY snippet_version.snippet_version_id DESC", array($id));
 
 	$rows=db_numrows($result);
 	if (!$result || $rows < 1) {
-		echo '<div class="error">' ._('Error - no versions found').'</div>';
+		echo '<div class="error">' ._('Error: no versions found').'</div>';
 	} else {
 		echo '
 		<h3>' ._('Versions Of This Snippet:').'</h3>
@@ -144,7 +144,7 @@ ORDER BY snippet_package_version.snippet_package_version_id DESC',
 
 	$rows=db_numrows($result);
 	if (!$result || $rows < 1) {
-		echo '<div class="error">' ._('Error - no versions found').'</div>';
+		echo '<div class="error">' ._('Error: no versions found').'</div>';
 	} else {
 		echo '
 		<h3>' ._('Versions Of This Package:').'</h3>
@@ -220,6 +220,6 @@ ORDER BY snippet_package_version.snippet_package_version_id DESC',
 
 } else {
 
-	exit_error(_('Error - was the URL mangled?'));
+	exit_error(_('Error: was the URL mangled?'));
 
 }
diff --git a/src/www/snippet/package.php b/src/www/snippet/package.php
index 71cabc2..2d4a9ef 100644
--- a/src/www/snippet/package.php
+++ b/src/www/snippet/package.php
@@ -54,9 +54,8 @@ if (session_loggedin()) {
 			if (!$result) {
 				//error in database
 				form_release_key(getStringFromRequest("form_key"));
-				$error_msg .= _('ERROR DOING SNIPPET PACKAGE INSERT!');
+				$error_msg .= _('Error doing snippet package insert').' '.db_error();
 				snippet_header(array('title'=>_('Submit A New Snippet Package')));
-				echo db_error();
 				snippet_footer(array());
 				exit;
 			} else {
@@ -73,14 +72,14 @@ if (session_loggedin()) {
 								  time()));
 				if (!$result) {
 					//error in database
-					$error_msg .= _('ERROR DOING SNIPPET PACKAGE VERSION INSERT!');
+					$error_msg .= _('Error doing snippet package version insert');
 					snippet_header(array('title'=>_('Submit A New Snippet Package')));
 					echo db_error();
 					snippet_footer(array());
 					exit;
 				} else {
 					//so far so good - now add snippets to the package
-					$feedback .= _('Snippet Pacakge Version Added Successfully.');
+					$feedback .= _('Snippet Package Version Added Successfully.');
 
 					//id for this snippet_package_version
 					$snippet_package_version_id=
@@ -95,7 +94,7 @@ if (session_loggedin()) {
 
 <script type="text/javascript">/* <![CDATA[ */
 function show_add_snippet_box() {
-	newWindow = open("","occursDialog","height=500,width=300,scrollbars=yes,resizable=yes");
+	var newWindow = open("","occursDialog","height=500,width=300,scrollbars=yes,resizable=yes");
 	newWindow.location=('/snippet/add_snippet_to_package.php?suppress_nav=1&snippet_package_version_id=<?php
 			echo $snippet_package_version_id; ?>');
 }
@@ -121,7 +120,7 @@ function show_add_snippet_box() {
 			}
 		} else {
 			form_release_key(getStringFromRequest("form_key"));
-			exit_error(_('Error - Go back and fill in all the information'));
+			exit_error(_('Error: Go back and fill in all the information'));
 		}
 
 	}
@@ -174,7 +173,7 @@ function show_add_snippet_box() {
 	<tr><td colspan="2" class="align-center">
 		<strong><?php echo _('Make sure all info is complete and accurate'); ?></strong>
 		<br />
-		<input type="submit" name="submit" value="<?php echo _('SUBMIT'); ?>" />
+		<input type="submit" name="submit" value="<?php echo _('Submit'); ?>" />
 	</td></tr>
 
 	</table></form>
diff --git a/src/www/snippet/snippet_utils.php b/src/www/snippet/snippet_utils.php
index 1f80b71..98bfb71 100644
--- a/src/www/snippet/snippet_utils.php
+++ b/src/www/snippet/snippet_utils.php
@@ -24,7 +24,7 @@
  */
 
 $SCRIPT_CATEGORY[0]= _('Choose One');
-$SCRIPT_CATEGORY[1]= _('UNIX Admin');
+$SCRIPT_CATEGORY[1]= _('Unix Admin');
 $SCRIPT_CATEGORY[2]= _('HTML Manipulation');
 $SCRIPT_CATEGORY[3]= _('BBS Systems');
 $SCRIPT_CATEGORY[4]= _('Auctions');
@@ -148,7 +148,7 @@ AND snippet_version.snippet_version_id=snippet_package_item.snippet_version_id
 AND snippet_package_item.snippet_package_version_id=$1", array($version));
 
 	$rows=db_numrows($result);
-	echo '<h3>' ._('Snippets In This Package:').'</h3>';
+	echo '<h3>' ._('Snippets In This Package').'</h3>';
 
 	$title_arr=array();
 	$title_arr[]= _('Snippet ID');
diff --git a/src/www/snippet/submit.php b/src/www/snippet/submit.php
index 5ff4d5e..a8a7901 100644
--- a/src/www/snippet/submit.php
+++ b/src/www/snippet/submit.php
@@ -56,8 +56,7 @@ if (session_loggedin()) {
 							  $language,
 							  $license));
 			if (!$result) {
-				$error_msg = _('ERROR DOING SNIPPET INSERT!');
-				echo db_error();
+				$error_msg = _('Error doing snippet insert').' '.db_error();
 			} else {
 				$feedback = _('Snippet Added Successfully.');
 				$snippet_id=db_insertid($result,'snippet','snippet_id');
@@ -72,15 +71,14 @@ if (session_loggedin()) {
 								  time(),
 								  htmlspecialchars($code)));
 				if (!$result) {
-					$feedback = _('ERROR DOING SNIPPET VERSION INSERT!');
-					echo db_error();
+					$feedback = _('Error doing snippet version insert').' '.db_error();
 				} else {
 					$feedback = _('Snippet Added Successfully.');
 				}
 			}
 		} else {
 			form_release_key(getStringFromRequest("form_key"));
-			exit_error(_('Error - Go back and fill in all the information'));
+			exit_error(_('Error: Go back and fill in all the information'));
 		}
 
 	}
@@ -143,7 +141,7 @@ if (session_loggedin()) {
 	</td></tr>
 
 	<tr><td colspan="2" class="align-center">
-        <?php echo $HTML->html_input('submit', '', _('Make sure all info is complete and accurate'), 'submit', _('SUBMIT')); ?>
+        <?php echo $HTML->html_input('submit', '', _('Make sure all info is complete and accurate'), 'submit', _('Submit')); ?>
 	</td></tr>
 	</table></form>
 
diff --git a/src/www/stats/site_stats_utils.php b/src/www/stats/site_stats_utils.php
index 9605c62..0f1072c 100644
--- a/src/www/stats/site_stats_utils.php
+++ b/src/www/stats/site_stats_utils.php
@@ -141,7 +141,7 @@ function stats_site_projects_form( $report='last_30', $orderby = 'downloads', $p
 
 	$reports_names=array();
 	$reports_names[]=_('last_30');
-	$reports_names[]=_('all');
+	$reports_names[]=_('All');
 
 	echo html_build_select_box_from_arrays($reports_ids, $reports_names, 'report', $report, false);
 
@@ -213,7 +213,7 @@ ORDER BY ' . $order_clause,
 }
 
 function stats_site_projects( $report, $orderby, $projects, $trove ) {
-	$i=0;
+
 	$offset=0;
 	$trove_cat=0;
 	$res=stats_site_project_result( $report, $orderby, $projects, $trove );

-----------------------------------------------------------------------

Summary of changes:
 src/www/pm/reporting/index.php             |   20 +++++++-------------
 src/www/search/index.php                   |    2 +-
 src/www/snippet/add_snippet_to_package.php |   17 ++++++++---------
 src/www/snippet/addversion.php             |   28 +++++++++++++---------------
 src/www/snippet/browse.php                 |    4 +++-
 src/www/snippet/delete.php                 |   10 +++++-----
 src/www/snippet/detail.php                 |    6 +++---
 src/www/snippet/package.php                |   13 ++++++-------
 src/www/snippet/snippet_utils.php          |    4 ++--
 src/www/snippet/submit.php                 |   10 ++++------
 src/www/stats/site_stats_utils.php         |    4 ++--
 11 files changed, 54 insertions(+), 64 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list