Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Comments and debug messages deleted from last version

  • Loading branch information...
commit 80ababd00a2a5c2ff3bad03550653855c6453c91 1 parent cab7778
authored March 08, 2007
10  mod/scorm/locallib.php
@@ -587,27 +587,19 @@ function scorm_simple_play($scorm,$user) {
587 587
    $result = false;
588 588
   
589 589
    $scoes = get_records_select('scorm_scoes','scorm='.$scorm->id.' AND launch<>\'\'');
590  
-   echo 'EL COUNT VALE '.count($scoes);
591  
-   foreach ($scoes as $sco){
592  
-	   echo 'VEAMOS IDS'.$sco->id;
593  
-   }
594 590
    
595 591
    if (count($scoes) == 1) {
596  
-	   echo 'ENTRA AQUI EN EL ==1';
597 592
        if ($scorm->skipview >= 1) {
598 593
            $sco = current($scoes);
599 594
            if (scorm_get_tracks($sco->id,$user->id) === false) {
600  
-				echo 'LLAMO PLAYER LOCAL 2';
601  
-               header('Location: player.php?a='.$scorm->id.'&scoid= '.$sco->id);
  595
+				header('Location: player.php?a='.$scorm->id.'&scoid= '.$sco->id);
602 596
                $result = true;
603 597
            } else if ($scorm->skipview == 2) {
604  
-			   echo 'LLAMO PLAYER LOCAL 3';
605 598
                header('Location: player.php?a='.$scorm->id.'&scoid= '.$sco->id);
606 599
                $result = true;
607 600
            }
608 601
        }
609 602
    }
610  
-   echo 'va al result';
611 603
    return $result;
612 604
 }
613 605
 /*
4  mod/scorm/player.php
@@ -14,10 +14,10 @@
14 14
     $mode = optional_param('mode', 'normal', PARAM_ALPHA); // navigation mode
15 15
     $currentorg = optional_param('currentorg', '', PARAM_RAW); // selected organization
16 16
     $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt
17  
-	echo 'SCOID'.$scoid;
  17
+	
18 18
 	$scoid=$_GET['scoid'];
19 19
 	
20  
-	echo 'SCOID'.$scoid;
  20
+	
21 21
 	//$scoid=$_POST['scoid'];
22 22
 	//echo 'SCOID'.$scoid;
23 23
 	if ($sco1 = get_record("scorm_scoes", "id", $scoid,"parent",'/')) {

0 notes on commit 80ababd

Please sign in to comment.
Something went wrong with that request. Please try again.