Just activating validation in Head to be able to test it.

This commit is contained in:
stronk7 2004-12-17 17:24:13 +00:00
parent 35bac30293
commit ced8b969e6

View File

@ -21,12 +21,12 @@ if (!isset($CFG->scorm_validate)) {
$scorm_validate = 'none';
//I've commented this out for Moodle 1.4, as I've seen errors in
//SCORM packages even though the actual package worked fine. -- Martin Dougiamas
//if (extension_loaded('domxml') && version_compare(phpversion(),'5.0.0','<')) {
// $scorm_validate = 'domxml';
//}
//if (version_compare(phpversion(),'5.0.0','>=')) {
// $scorm_validate = 'php5';
//}
if (extension_loaded('domxml') && version_compare(phpversion(),'5.0.0','<')) {
$scorm_validate = 'domxml';
}
if (version_compare(phpversion(),'5.0.0','>=')) {
$scorm_validate = 'php5';
}
set_config('scorm_validate', $scorm_validate);
}