]> git.mjollnir.org Git - moodle.git/commitdiff
Just activating validation in Head to be able to test it.
authorstronk7 <stronk7>
Fri, 17 Dec 2004 17:24:13 +0000 (17:24 +0000)
committerstronk7 <stronk7>
Fri, 17 Dec 2004 17:24:13 +0000 (17:24 +0000)
mod/scorm/lib.php

index 152efc1bf64dbb0ae0d7f2a33da0d2307a9f536e..8b22abec8ba841f3372ed5155e6386ffc3b551df 100755 (executable)
@@ -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);
 }