[svn r12106] Fix bug with language vars (http://projects.dokeos.com/?do=details&id=1445)

skala
Julian Prud'homme 19 years ago
parent 051ae81377
commit 1d1aaa5eb4
  1. 4
      main/survey/create_new_survey.php
  2. 2
      main/survey/preview.php
  3. 4
      main/survey/question.php
  4. 4
      main/survey/reporting.php
  5. 4
      main/survey/survey.php
  6. 2
      main/survey/survey_invitation.php
  7. 2
      main/survey/survey_invite.php
  8. 4
      main/survey/survey_list.php

@ -21,7 +21,7 @@
* @package dokeos.survey
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code
* @version $Id: create_new_survey.php 11997 2007-04-12 19:18:32Z pcool $
* @version $Id: create_new_survey.php 12106 2007-04-24 13:17:19Z elixir_julian $
*
* @todo only the available platform languages should be used => need an api get_languages and and api_get_available_languages (or a parameter)
*/
@ -55,7 +55,7 @@ $table_course_survey_rel = Database :: get_main_table(TABLE_MAIN_COURSE_SURVEY)
if (!api_is_allowed_to_edit())
{
Display :: display_header();
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
Display :: display_footer();
exit;
}

@ -61,7 +61,7 @@ Display :: display_header(get_lang('SurveyPreview'));
// only a course admin is allowed to preview a survey: you are NOT a course admin => error message
if (!api_is_allowed_to_edit())
{
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
}
// only a course admin is allowed to preview a survey: you are a course admin
else

@ -21,7 +21,7 @@
* @package dokeos.survey
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
* @version $Id: question.php 12089 2007-04-23 14:53:48Z elixir_julian $
* @version $Id: question.php 12106 2007-04-24 13:17:19Z elixir_julian $
*/
// name of the language file that needs to be included
@ -38,7 +38,7 @@ require_once('survey.lib.php');
if (!api_is_allowed_to_edit())
{
Display :: display_header();
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
Display :: display_footer();
exit;
}

@ -21,7 +21,7 @@
* @package dokeos.survey
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
* @version $Id: reporting.php 11685 2007-03-25 21:14:55Z pcool $
* @version $Id: reporting.php 12106 2007-04-24 13:17:19Z elixir_julian $
*
* @todo The question has to be more clearly indicated (same style as when filling the survey)
*/
@ -78,7 +78,7 @@ check_parameters();
if (!api_is_allowed_to_edit())
{
Display :: display_header();
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
Display :: display_footer();
exit;
}

@ -21,7 +21,7 @@ Tel. +32 (2) 211 34 56
* @package dokeos.survey
* @author unknown
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
* @version $Id: survey.php 11688 2007-03-26 07:55:38Z pcool $
* @version $Id: survey.php 12106 2007-04-24 13:17:19Z elixir_julian $
*
* @todo use quickforms for the forms
*/
@ -41,7 +41,7 @@ require_once (api_get_path(LIBRARY_PATH)."/course.lib.php");
if (!api_is_allowed_to_edit())
{
Display :: display_header();
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
Display :: display_footer();
exit;
}

@ -42,7 +42,7 @@ require_once (api_get_path(LIBRARY_PATH)."mail.lib.inc.php");
if (!api_is_allowed_to_edit())
{
Display :: display_header();
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
Display :: display_footer();
exit;
}

@ -45,7 +45,7 @@ require_once (api_get_path(LIBRARY_PATH)."mail.lib.inc.php");
if (!api_is_allowed_to_edit())
{
Display :: display_header();
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
Display :: display_footer();
exit;
}

@ -21,7 +21,7 @@
* @package dokeos.survey
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
* @version $Id: survey_list.php 12092 2007-04-24 07:31:13Z elixir_julian $
* @version $Id: survey_list.php 12106 2007-04-24 13:17:19Z elixir_julian $
*
* @todo The invite column is not done
* @todo try to understand the white, blue, ... template stuff.
@ -43,7 +43,7 @@ require_once (api_get_path(LIBRARY_PATH)."/course.lib.php");
if (!api_is_allowed_to_edit())
{
Display :: display_header();
Display :: display_error_message(get_lang('NotAllowedHere'), false);
Display :: display_error_message(get_lang('NotAllowed'), false);
Display :: display_footer();
exit;
}

Loading…
Cancel
Save