[svn r13476] fix a bug when using hotpotatoes as an admin

skala
Eric Marguin 17 years ago
parent 9a4b928211
commit a11c4d57d7
  1. 4
      main/exercice/adminhp.php
  2. 4
      main/exercice/exercice_submit.php
  3. 4
      main/exercice/question_pool.php

@ -22,7 +22,7 @@
* HotPotatoes administration.
* @package dokeos.exercise
* @author Istvan Mandak
* @version $Id: adminhp.php 12828 2007-08-01 16:48:13Z yannoo $
* @version $Id: adminhp.php 13476 2007-10-12 11:38:16Z elixir_inter $
*/
@ -61,7 +61,7 @@ define(FREE_ANSWER, 5);
// allows script inclusions
define(ALLOWED_TO_INCLUDE,1);
$is_allowedToEdit=$is_courseAdmin;
$is_allowedToEdit=api_is_allowed_to_edit();
// document path
$documentPath=api_get_path(SYS_COURSE_PATH).$_course['path'].'/document';

@ -33,7 +33,7 @@
* the administrator
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: exercice_submit.php 13177 2007-09-21 14:50:21Z elixir_inter $
* @version $Id: exercice_submit.php 13476 2007-10-12 11:38:16Z elixir_inter $
*/
@ -63,7 +63,7 @@ $this_section=SECTION_COURSES;
include_once(api_get_path(LIBRARY_PATH).'text.lib.php');
$is_allowedToEdit=$is_courseAdmin;
$is_allowedToEdit=api_is_allowed_to_edit();
$TBL_EXERCICE_QUESTION = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION);
$TBL_EXERCICES = Database::get_course_table(TABLE_QUIZ_TEST);

@ -24,7 +24,7 @@
* One question can be in several exercises
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: question_pool.php 13301 2007-09-27 03:47:39Z yannoo $
* @version $Id: question_pool.php 13476 2007-10-12 11:38:16Z elixir_inter $
*/
// name of the language file that needs to be included
@ -40,7 +40,7 @@ include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
$is_allowedToEdit=$is_courseAdmin;
$is_allowedToEdit=api_is_allowed_to_edit();
$TBL_EXERCICE_QUESTION = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION);
$TBL_EXERCICES = Database::get_course_table(TABLE_QUIZ_TEST);

Loading…
Cancel
Save