Permalink
Browse files

Readded Exit link now called "Exit Activity"

  • Loading branch information...
1 parent d205581 commit d10fd935b9b1235629077b4596bdf96ee4a28d39 bobopinna committed Jul 3, 2007
Showing with 4 additions and 10 deletions.
  1. +4 −10 mod/scorm/player.php
View
@@ -14,15 +14,6 @@
$mode = optional_param('mode', 'normal', PARAM_ALPHA); // navigation mode
$currentorg = optional_param('currentorg', '', PARAM_RAW); // selected organization
$newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt
-
- $scoid=$_GET['scoid'];
-
-
- //$scoid=$_POST['scoid'];
- //echo 'SCOID'.$scoid;
- if ($sco1 = get_record("scorm_scoes", "id", $scoid,"parent",'/')) {
- $scoid++;
- }
if (!empty($id)) {
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
@@ -53,6 +44,7 @@
$strscorms = get_string('modulenameplural', 'scorm');
$strscorm = get_string('modulename', 'scorm');
$strpopup = get_string('popup','scorm');
+ $strexit = get_string('exitactivity','scorm');
if ($course->id != SITEID) {
$navigation = "<a $CFG->frametarget href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
@@ -134,9 +126,11 @@
$bodyscript = 'onunload="main.close();"';
}
+ $exitlink = '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$scorm->course.'" title="'.$strexit.'">'.$strexit.'</a> ';
+
print_header($pagetitle, $course->fullname,
"$navigation <a $CFG->frametarget href=\"view.php?id=$cm->id\">".format_string($scorm->name,true)."</a>",
- '', '', true, update_module_button($cm->id, $course->id, $strscorm), '', false, $bodyscript);
+ '', '', true, $exitlink.update_module_button($cm->id, $course->id, $strscorm), '', false, $bodyscript);
//if ($sco->scormtype == 'sco') {
?>
<script type="text/javascript" src="request.js"></script>

0 comments on commit d10fd93

Please sign in to comment.