[Fusionforge-commits] r11429 - trunk/src/www/survey/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sat Nov 6 21:05:57 CET 2010


Author: aljeux
Date: 2010-11-06 21:05:56 +0100 (Sat, 06 Nov 2010)
New Revision: 11429

Modified:
   trunk/src/www/survey/admin/question.php
Log:
Improve title in survey.

Modified: trunk/src/www/survey/admin/question.php
===================================================================
--- trunk/src/www/survey/admin/question.php	2010-11-06 20:05:48 UTC (rev 11428)
+++ trunk/src/www/survey/admin/question.php	2010-11-06 20:05:56 UTC (rev 11429)
@@ -5,6 +5,7 @@
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2002-2004 (c) GForge Team
  * Copyright 2008-2010 (c) FusionForge Team
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
  * http://fusionforge.org/
  *
  * This file is part of FusionForge.
@@ -48,8 +49,10 @@
 
 $is_admin_page='y';
 $sh = new  SurveyHtml();
-$sh->header(array('title'=>_('Add A Question')));
 
+$title = $question_id ? _('Edit a Question') : _('Add a Question');
+$sh->header(array('title'=>$title));
+
 if (!session_loggedin() || !user_ismember($group_id,'A')) {
     echo '<div class="error">'._('Permission denied').'</div>';
     $sh->footer(array());




More information about the Fusionforge-commits mailing list