Fixed some debugging statements

This commit is contained in:
moodler 2006-09-18 08:57:23 +00:00
parent 218ec889d2
commit 0bb391b7a0
3 changed files with 13 additions and 13 deletions

View File

@ -167,7 +167,7 @@ function SCORMapi1_2() {
if (param == "") {
if (!Initialized) {
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert("Initialized SCORM 1.2");';
}
?>
@ -188,7 +188,7 @@ function SCORMapi1_2() {
if (param == "") {
if (Initialized) {
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert("Finished SCORM 1.2");';
}
?>
@ -233,7 +233,7 @@ function SCORMapi1_2() {
if (subelement == element) {
errorCode = "0";
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert(element+": "+eval(element));';
}
?>
@ -337,7 +337,7 @@ function SCORMapi1_2() {
eval(element+'="'+value+'";');
errorCode = "0";
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert(element+":= "+value);';
}
?>
@ -353,7 +353,7 @@ function SCORMapi1_2() {
}
errorCode = "0";
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert(element+":= "+value);';
}
?>
@ -384,7 +384,7 @@ function SCORMapi1_2() {
if (Initialized) {
result = StoreData(cmi,false);
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert("Data Commited");';
}
?>

View File

@ -186,7 +186,7 @@ function SCORMapi1_3() {
if (param == "") {
if ((!Initialized) && (!Terminated)) {
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert("Initialized SCORM 1.3");';
}
?>
@ -211,7 +211,7 @@ function SCORMapi1_3() {
if (param == "") {
if ((Initialized) && (!Terminated)) {
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert("Terminated SCORM 1.3");';
}
?>
@ -262,7 +262,7 @@ function SCORMapi1_3() {
if (subelement == element) {
errorCode = "0";
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert(element+": "+eval(element));';
}
?>
@ -377,7 +377,7 @@ function SCORMapi1_3() {
eval(element+'="'+value+'";');
errorCode = "0";
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert(element+":= "+value);';
}
?>
@ -392,7 +392,7 @@ function SCORMapi1_3() {
eval(element+'="'+value+'";');
errorCode = "0";
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert(element+":= "+value);';
}
?>
@ -429,7 +429,7 @@ function SCORMapi1_3() {
if ((Initialized) && (!Terminated)) {
result = StoreData(cmi,false);
<?php
if (($CFG->debug > 7) && (isadmin())) {
if (debugging()) {
echo 'alert("Data Commited");';
}
?>

View File

@ -482,7 +482,7 @@
//Update record
$scorm->summary = addslashes($result);
$status = update_record("scorm",$scorm);
if ($CFG->debug>7) {
if (debugging()) {
if (!defined('RESTORE_SILENTLY')) {
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}