[Fusionforge-commits] r11468 - in trunk/src/www/survey: . admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Nov 8 18:39:46 CET 2010


Author: aljeux
Date: 2010-11-08 18:39:46 +0100 (Mon, 08 Nov 2010)
New Revision: 11468

Modified:
   trunk/src/www/survey/admin/index.php
   trunk/src/www/survey/rating_resp.php
Log:
Move header() up.

Modified: trunk/src/www/survey/admin/index.php
===================================================================
--- trunk/src/www/survey/admin/index.php	2010-11-08 17:39:40 UTC (rev 11467)
+++ trunk/src/www/survey/admin/index.php	2010-11-08 17:39:46 UTC (rev 11468)
@@ -5,6 +5,7 @@
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2002-2004 (c) GForge Team
  * Copyright 2010 (c) Franck Villaume
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
  * http://fusionforge.org/
  *
  * This file is part of FusionForge.
@@ -32,6 +33,7 @@
 $group_id = getIntFromRequest('group_id');
 $survey_id = getIntFromRequest('survey_id');
 $sh = new  SurveyHtml();
+$sh->header(array('title'=>_('Survey Administration')));
 
 if (!$group_id) {
     exit_no_group();
@@ -51,7 +53,6 @@
 	exit_permission_denied(_('You are not a Project admin'),'surveys');
 }
 
-$sh->header(array('title'=>_('Survey Administration')));
 echo '<h1>'._('Survey Administration').'</h1>';
 ?>
 

Modified: trunk/src/www/survey/rating_resp.php
===================================================================
--- trunk/src/www/survey/rating_resp.php	2010-11-08 17:39:40 UTC (rev 11467)
+++ trunk/src/www/survey/rating_resp.php	2010-11-08 17:39:46 UTC (rev 11468)
@@ -4,6 +4,7 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2002-2004 (c) GForge Team
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
  * http://fusionforge.org/
  *
  * This file is part of FusionForge.
@@ -27,6 +28,7 @@
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 
+$HTML->header(array('title'=>_('Voting')));
 
 if (!session_loggedin()) {
 	exit_not_logged_in();
@@ -41,7 +43,6 @@
 			1=project
 			2=release
 		*/
-		$HTML->header(array('title'=>_('Voting')));
 		$toss = db_query_params ('DELETE FROM survey_rating_response WHERE user_id=$1 AND type=$2 AND id=$3',
 					 array(user_getid(),
 					       $flag,




More information about the Fusionforge-commits mailing list