Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Deleted addslashes_js() because it was impossible to add it to weblib…

….php
  • Loading branch information...
commit 7dd535056e0d9dc33c7ee296a7fd92e14b0f1a80 1 parent 555bfa1
csantossaenz authored
Showing with 5 additions and 8 deletions.
  1. +5 −8 mod/scorm/mod.html
View
13 mod/scorm/mod.html
@@ -100,10 +100,7 @@
$strmenubar = get_string('menubar', 'scorm');
$strtoolbar = get_string('toolbar', 'scorm');
$strstatus = get_string('statusbar', 'scorm');
- $strerrorlog = get_string('errorlogs','scorm');
- $strvalidation = print_string('validation','scorm');
- $strerrorlog = addslashes_js($strerrorlog);
- $strvalidation = addslashes_js($strvalidation);
+
?>
<script type="text/javascript" src="<?php p($CFG->wwwroot) ?>/mod/scorm/request.js" ></script>
@@ -165,11 +162,11 @@
return false;
}
} else {
- //result = '<?php print_string('validation','scorm') ?>: '+ result + '\n';
- result = '<?php echo $strvalidation ?>: '+ result + '\n';
+ result = '<?php print_string('validation','scorm') ?>: '+ result + '\n';
+ //result = '<?php echo $strvalidation ?>: '+ result + '\n';
if (errorlogs != '') {
- //result.concat('<?php print_string('errorlogs','scorm') ?>:\n'+errorlogs);
- result = '<?php echo $strerrorlog ?>: '+ result + '\n';
+ result.concat('<?php print_string('errorlogs','scorm') ?>:\n'+errorlogs);
+ // result = '<?php echo $strerrorlog ?>: '+ result + '\n';
}
alert(result);
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.