From e45ecd37d57002f3b7d294188c423647ede7be34 Mon Sep 17 00:00:00 2001 From: bobopinna Date: Tue, 13 Sep 2005 06:47:08 +0000 Subject: [PATCH] Modified debug mode: now only andmin view api communication alert when debug mode is on --- mod/scorm/datamodels/scorm1_2.js.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/scorm/datamodels/scorm1_2.js.php b/mod/scorm/datamodels/scorm1_2.js.php index 6fcf0c23fe8..fd9e87c5622 100644 --- a/mod/scorm/datamodels/scorm1_2.js.php +++ b/mod/scorm/datamodels/scorm1_2.js.php @@ -167,7 +167,7 @@ function SCORMapi1_2() { if (param == "") { if (!Initialized) { debug > 7) { + if (($CFG->debug > 7) && (isadmin())) { echo 'alert("Initialized");'; } ?> @@ -188,7 +188,7 @@ function SCORMapi1_2() { if (param == "") { if (Initialized) { debug > 7) { + if (($CFG->debug > 7) && (isadmin())) { echo 'alert("Finished");'; } ?> @@ -233,7 +233,7 @@ function SCORMapi1_2() { if (subelement == element) { errorCode = "0"; debug > 7) { + if (($CFG->debug > 7) && (isadmin())) { echo 'alert(element+": "+eval(element));'; } ?> @@ -348,7 +348,7 @@ function SCORMapi1_2() { } errorCode = "0"; debug > 7) { + if (($CFG->debug > 7) && (isadmin())) { echo 'alert(element+":= "+value);'; } ?>