Bug #1787 - Tests tool, QTI export: A patch for undefined function mime_content_type() has been added.

skala
Ivan Tcholakov 16 years ago
parent 3c26c87901
commit e7ee8b881d
  1. 7
      main/exercice/export/qti2/qti2_classes.php

@ -21,6 +21,13 @@ define('MATCHING', 4);
define('FREE_ANSWER', 5);
define('HOTSPOT', 6);
if (!function_exists('mime_content_type')) {
require_once api_get_path(LIBRARY_PATH).'document.lib.php';
function mime_content_type($filename) {
return DocumentManager::file_get_mime_type((string)$filename);
}
}
require_once(api_get_path(SYS_CODE_PATH).'/exercice/answer.class.php');
require_once(api_get_path(SYS_CODE_PATH).'/exercice/exercise.class.php');
require_once(api_get_path(SYS_CODE_PATH).'/exercice/hotspot.class.php');

Loading…
Cancel
Save