Explorar el Código

Fixed previous commit b4f1d060ee whereby the inclusion of an exercises functions library was not loaded in a context-safe way (was preventing the creation of new exercises)

Yannick Warnier hace 14 años
padre
commit
774f53f6fc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main/exercice/exercise.class.php

+ 1 - 1
main/exercice/exercise.class.php

@@ -16,7 +16,7 @@ define('EXERCISE_FEEDBACK_TYPE_END',0);
 define('EXERCISE_FEEDBACK_TYPE_DIRECT',1);
 define('EXERCISE_FEEDBACK_TYPE_EXAM',2);
 
-require_once api_get_path(LIBRARY_PATH).'exercise_show_functions.lib.php';
+require_once dirname(__FILE__).'/../inc/lib/exercise_show_functions.lib.php';
 
 if(!class_exists('Exercise')):