Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Comments and debug messages deleted from last version

  • Loading branch information...
commit 80ababd00a2a5c2ff3bad03550653855c6453c91 1 parent cab7778
csantossaenz authored
Showing with 3 additions and 11 deletions.
  1. +1 −9 mod/scorm/locallib.php
  2. +2 −2 mod/scorm/player.php
View
10 mod/scorm/locallib.php
@@ -587,27 +587,19 @@ function scorm_simple_play($scorm,$user) {
$result = false;
$scoes = get_records_select('scorm_scoes','scorm='.$scorm->id.' AND launch<>\'\'');
- echo 'EL COUNT VALE '.count($scoes);
- foreach ($scoes as $sco){
- echo 'VEAMOS IDS'.$sco->id;
- }
if (count($scoes) == 1) {
- echo 'ENTRA AQUI EN EL ==1';
if ($scorm->skipview >= 1) {
$sco = current($scoes);
if (scorm_get_tracks($sco->id,$user->id) === false) {
- echo 'LLAMO PLAYER LOCAL 2';
- header('Location: player.php?a='.$scorm->id.'&scoid= '.$sco->id);
+ header('Location: player.php?a='.$scorm->id.'&scoid= '.$sco->id);
$result = true;
} else if ($scorm->skipview == 2) {
- echo 'LLAMO PLAYER LOCAL 3';
header('Location: player.php?a='.$scorm->id.'&scoid= '.$sco->id);
$result = true;
}
}
}
- echo 'va al result';
return $result;
}
/*
View
4 mod/scorm/player.php
@@ -14,10 +14,10 @@
$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
- echo 'SCOID'.$scoid;
+
$scoid=$_GET['scoid'];
- echo 'SCOID'.$scoid;
+
//$scoid=$_POST['scoid'];
//echo 'SCOID'.$scoid;
if ($sco1 = get_record("scorm_scoes", "id", $scoid,"parent",'/')) {
Please sign in to comment.
Something went wrong with that request. Please try again.