From: stronk7 Date: Fri, 17 Dec 2004 17:24:13 +0000 (+0000) Subject: Just activating validation in Head to be able to test it. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ced8b969e6ac5b521b621c3d295b525ec331aced;p=moodle.git Just activating validation in Head to be able to test it. --- diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 152efc1bf6..8b22abec8b 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -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); }