From 1d1aaa5eb45a9e6c329dfd07b5624d823deb17bc Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Tue, 24 Apr 2007 15:17:19 +0200 Subject: [PATCH] [svn r12106] Fix bug with language vars (http://projects.dokeos.com/?do=details&id=1445) --- main/survey/create_new_survey.php | 4 ++-- main/survey/preview.php | 2 +- main/survey/question.php | 4 ++-- main/survey/reporting.php | 4 ++-- main/survey/survey.php | 4 ++-- main/survey/survey_invitation.php | 2 +- main/survey/survey_invite.php | 2 +- main/survey/survey_list.php | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/main/survey/create_new_survey.php b/main/survey/create_new_survey.php index 14d2e20623..eb31b96bcd 100644 --- a/main/survey/create_new_survey.php +++ b/main/survey/create_new_survey.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 , 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; } diff --git a/main/survey/preview.php b/main/survey/preview.php index 6d31585a06..e690c28d06 100644 --- a/main/survey/preview.php +++ b/main/survey/preview.php @@ -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 diff --git a/main/survey/question.php b/main/survey/question.php index 1894648bf2..dc26df0a2d 100644 --- a/main/survey/question.php +++ b/main/survey/question.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 , 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; } diff --git a/main/survey/reporting.php b/main/survey/reporting.php index 47f2a7020c..f16e5bdb49 100644 --- a/main/survey/reporting.php +++ b/main/survey/reporting.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 , 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; } diff --git a/main/survey/survey.php b/main/survey/survey.php index e8daee139a..e42f83077f 100644 --- a/main/survey/survey.php +++ b/main/survey/survey.php @@ -21,7 +21,7 @@ Tel. +32 (2) 211 34 56 * @package dokeos.survey * @author unknown * @author Patrick Cool , 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; } diff --git a/main/survey/survey_invitation.php b/main/survey/survey_invitation.php index 6dcec14cd6..d2e5733d91 100644 --- a/main/survey/survey_invitation.php +++ b/main/survey/survey_invitation.php @@ -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; } diff --git a/main/survey/survey_invite.php b/main/survey/survey_invite.php index 53946068cd..00fd433fd4 100644 --- a/main/survey/survey_invite.php +++ b/main/survey/survey_invite.php @@ -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; } diff --git a/main/survey/survey_list.php b/main/survey/survey_list.php index ee626e527d..1253c6bd4b 100644 --- a/main/survey/survey_list.php +++ b/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 , 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; }