Permalink
Browse files

Fixed a problem with packages validation and PHP5

  • Loading branch information...
1 parent 9fba045 commit 04c39c8dedfea7c9d1d747a411f40b40a26bb910 bobopinna committed Dec 2, 2004
Showing with 7 additions and 2 deletions.
  1. +1 −1 mod/scorm/config.html
  2. +1 −1 mod/scorm/lib.php
  3. +5 −0 mod/scorm/view.php
@@ -8,7 +8,7 @@
<?php
unset($choices);
$choices[""] = get_string("none");
- if (extension_loaded('domxml')) {
+ if (extension_loaded('domxml') && version_compare(phpversion(),"5.0.0","<")) {
$choices["domxml"] = get_string("domxml","scorm");
}
if (version_compare(phpversion(),"5.0.0",">=")) {
View
@@ -21,7 +21,7 @@
$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')) {
+ //if (extension_loaded('domxml') && version_compare(phpversion(),'5.0.0','<')) {
// $scorm_validate = 'domxml';
//}
//if (version_compare(phpversion(),'5.0.0','>=')) {
View
@@ -149,6 +149,11 @@
} else {
echo " <img src=\"pix/spacer.gif\" />\n";
}
+ print_r ($sco->title);
+ if ($sco->title == "") {
+ $sco->title = get_string('notitle','scorm');
+ echo '-'.$sco->title.'-';
+ }
if ($sco->launch) {
$score = "";
if ($sco_user=get_record("scorm_sco_users","scoid",$sco->id,"userid",$USER->id)) {

0 comments on commit 04c39c8

Please sign in to comment.