Permalink
Browse files

MDL-26974 - add extra logging information all the time - not just whe…

…n debugging is on.
  • Loading branch information...
1 parent 7da6c0f commit 7b80d3c65a33e8c16bc3f873d8a63bfbb4adcba6 @danmarsden danmarsden committed with nebgor Dec 5, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 mod/scorm/loadSCO.php
@@ -141,6 +141,8 @@
$result = "$CFG->wwwroot/pluginfile.php/$context->id/mod_scorm/content/$scorm->revision/$launcher";
}
+add_to_log($course->id, 'scorm', 'launch', 'view.php?id='.$cm->id, $result, $cm->id);
+
// which API are we looking for
$LMS_api = (scorm_version_check($scorm->version, SCORM_12) || empty($scorm->version)) ? 'API' : 'API_1484_11';
?>
@@ -211,9 +213,5 @@ function doredirect() {
</head>
<body onload="doredirect();">
<p><?php echo get_string('activitypleasewait', 'scorm');?></p>
- <?php if (debugging('', DEBUG_DEVELOPER)) {
- add_to_log($course->id, 'scorm', 'launch', 'view.php?id='.$cm->id, $result, $cm->id);
- }
- ?>
</body>
</html>

0 comments on commit 7b80d3c

Please sign in to comment.