From 23ab8e8d80b4fbd92e597ec9f4de304ff853990e Mon Sep 17 00:00:00 2001 From: bobopinna Date: Sun, 27 May 2007 16:26:05 +0000 Subject: [PATCH] removed an unrequired require_once optimized an if branch --- mod/scorm/lib.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 65a9b7a98b..e53e8a6b68 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -9,7 +9,7 @@ * @param mixed $scorm Form data * @return int */ -require_once('locallib.php'); +//require_once('locallib.php'); function scorm_add_instance($scorm) { global $CFG; @@ -76,6 +76,7 @@ function scorm_update_instance($scorm) { require_once('locallib.php'); + $scorm->parse = 0; if (($packagedata = scorm_check_package($scorm)) != null) { $scorm->pkgtype = $packagedata->pkgtype; if ($packagedata->launch == 0) { @@ -88,9 +89,6 @@ function scorm_update_instance($scorm) { $scorm->dir = $CFG->dataroot.'/'.$scorm->course.'/moddata/scorm'; $scorm->md5hash = md5_file($scorm->dir.$scorm->datadir.'/'.basename($scorm->reference)); } - mtrace($scorm->md5hash); - } else { - $scorm->parse = 0; } } -- 2.39.5