mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Just activating validation in Head to be able to test it.
This commit is contained in:
parent
35bac30293
commit
ced8b969e6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user