Permalink
Browse files

MDL-28542 SCORM tidy up code.

  • Loading branch information...
danmarsden committed Aug 2, 2011
1 parent aab23f9 commit 4201a7464aa16cd6580dbf2751a348be086a4bf7
Showing with 4 additions and 4 deletions.
  1. +2 −2 mod/scorm/locallib.php
  2. +2 −2 mod/scorm/view.php
View
@@ -679,8 +679,8 @@ function scorm_course_format_display($user, $course) {
print_error('invalidcoursemodule');
}
$contextmodule = get_context_instance(CONTEXT_MODULE, $cm->id);
- if ((has_capability('mod/scorm:skipview', $contextmodule)) && scorm_simple_play($scorm, $user, $contextmodule)) {
- exit;
+ if ((has_capability('mod/scorm:skipview', $contextmodule))) {
+ scorm_simple_play($scorm, $user, $contextmodule);
}
$colspan = '';
$headertext = '<table width="100%"><tr><td class="title">'.get_string('name').': <b>'.format_string($scorm->name).'</b>';
View
@@ -71,8 +71,8 @@
add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id", $cm->id);
-if ((has_capability('mod/scorm:skipview', $contextmodule)) && scorm_simple_play($scorm, $USER, $contextmodule)) {
- exit;
+if ((has_capability('mod/scorm:skipview', $contextmodule))) {
+ scorm_simple_play($scorm, $USER, $contextmodule);
}
//

0 comments on commit 4201a74

Please sign in to comment.