[Fusionforge-commits] FusionForge branch master updated. 10f29eb55a5a46446af976859d0980b1690f2958

Franck VILLAUME nerville at fusionforge.org
Wed Dec 18 23:13:47 CET 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  10f29eb55a5a46446af976859d0980b1690f2958 (commit)
      from  635cb59151977588092395453d00d794be680173 (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 10f29eb55a5a46446af976859d0980b1690f2958
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Dec 18 23:13:28 2013 +0100

    people: use proper class for feedback, not h2

diff --git a/src/www/people/viewprofile.php b/src/www/people/viewprofile.php
index a943c1e..66a3e4d 100644
--- a/src/www/people/viewprofile.php
+++ b/src/www/people/viewprofile.php
@@ -4,7 +4,7 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2002 (c) Silicon and Software Systems (S3)
- * Copyright 2010 (c) Franck Villaume
+ * Copyright 2010-2013, Franck Villaume - TrivialDev
  * http://fusionforge.org/
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -42,30 +42,25 @@ if ($user_id && is_numeric($user_id)) {
 		Fill in the info to create a job
 	*/
 	//for security, include group_id
-	$result=db_query_params('SELECT * FROM users WHERE user_id=$1', array($user_id));
+	$result = db_query_params('SELECT * FROM users WHERE user_id=$1', array($user_id));
 	if (!$result || db_numrows($result) < 1) {
 		$error_msg .= _('No Such User')._(': ').db_error();
-	    people_header(array('title'=>_('View a User Profile')));
+		people_header(array('title' => _('View a User Profile')));
 	} else {
-
-	    people_header(array('title'=>_('View a User Profile')));
+		people_header(array('title' => _('View a User Profile')));
 		/*
 			profile set private
 		*/
-		if (db_result($result,0,'people_view_skills') != 1) {
-			echo '<h2>'._('This User Has Set His/Her Profile to Private').'</h2>';
+		if (db_result($result, 0, 'people_view_skills') != 1) {
+			echo '<p class="warning">'._('This user has set his/her profile to private.').'</p>';
 			people_footer(array());
 			exit;
 		}
-
-		echo '
-        <p>
-		<strong>'._('Skills profile for').' : </strong>'. db_result($result,0,'realname') .
-        ' ('.db_result($result, 0, 'user_name') .
-        ')</p> <table class="fullwidth">';
-
-        displayUserSkills($user_id, 0);
-
+		echo '<p>
+			<strong>'._('Skills profile for').' : </strong>'. db_result($result, 0, 'realname') .
+			' ('.db_result($result, 0, 'user_name') .
+			')</p> <table class="fullwidth">';
+		displayUserSkills($user_id, 0);
 		echo '</table>';
 	}
 

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

Summary of changes:
 src/www/people/viewprofile.php |   27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list