Permalink
Browse files

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

….php
  • Loading branch information...
1 parent c00bb02 commit 15b10f5cab87a3e97884f1bf76d697e48399cef0 csantossaenz committed May 11, 2007
Showing with 5 additions and 8 deletions.
  1. +5 −8 mod/scorm/mod.html
View
@@ -97,10 +97,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>
@@ -162,11 +159,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 = '<?php echo $strerrorlog ?>: '+ result + '\n';
- //result.concat('<?php print_string('errorlogs','scorm') ?>:\n'+errorlogs);
+ // result = '<?php echo $strerrorlog ?>: '+ result + '\n';
+ result.concat('<?php print_string('errorlogs','scorm') ?>:\n'+errorlogs);
}
alert(result);
return false;

0 comments on commit 15b10f5

Please sign in to comment.