From 9e3e85eb05aeccdfefaf3d3407bcc633e75ebb43 Mon Sep 17 00:00:00 2001 From: bobopinna Date: Tue, 3 Jul 2007 13:44:19 +0000 Subject: [PATCH] Refixed bug MDL-7325 --- mod/scorm/lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index e155aa84719..06cf702028e 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -18,7 +18,6 @@ $repositorybrowser = '/mod/resource/type/ims/finder.php'; * @return int */ -require_once($CFG->dirroot.'/mod/scorm/locallib.php'); function scorm_add_instance($scorm) { if(empty($scorm->datadir)) { //check to make sure scorm object is valid BEFORE entering it in the database. @@ -360,7 +359,7 @@ function scorm_get_post_actions() { } function scorm_option2text($scorm) { - global $SCORM_POPUP_OPTIONS; + require_once('locallib.php'); if (isset($scorm->popup)) { if ($scorm->popup) {