Kaynağa Gözat

Minor - cosmetic changes

Julio Montoya 12 yıl önce
ebeveyn
işleme
480b5f2d41

+ 0 - 4
main/exercice/exercise.class.php

@@ -1447,10 +1447,6 @@ class Exercise {
 		$exercise_obj= new Exercise();
 		$exercise_obj = $this;
 
-		$TBL_EXERCICE_QUESTION  = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION);
-		$TBL_EXERCICES          = Database::get_course_table(TABLE_QUIZ_TEST);
-		$TBL_QUESTIONS          = Database::get_course_table(TABLE_QUIZ_QUESTION);
-
 		// force the creation of a new exercise
 		$exercise_obj->updateTitle($exercise_obj->selectTitle().' - '.get_lang('Copy'));
 		//Hides the new exercise

+ 1 - 2
main/exercice/exercise.lib.php

@@ -691,12 +691,11 @@ function showQuestion($questionId, $only_questions = false, $origin = false, $cu
 						// -->
 						</script>';
 		$s .= '<tr><td valign="top" colspan="2" width="520"><table><tr><td width="520">
-					<script language="JavaScript" type="text/javascript">
+					<script>
 						<!--
 						// Version check based upon the values entered above in "Globals"
 						var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
 
-
 						// Check to see if the version meets the requirements for playback
 						if (hasReqestedVersion) {  // if we\'ve detected an acceptable version
 						    var oeTags = \'<object type="application/x-shockwave-flash" data="../plugin/hotspot/'.$swf_file.'.swf?modifyAnswers='.$questionId.'&amp;canClick:'.$canClick.'" width="600" height="'.$swf_height.'">\'

+ 2 - 2
main/exercice/savescores.php

@@ -81,7 +81,7 @@ function save_scores($file, $score) {
 		//table to get tracking in there as well
 	    global $jscript2run;
 		//record the results in the learning path, using the SCORM interface (API)
-	    $jscript2run .= '<script language="javascript" type="text/javascript">window.parent.API.void_save_asset('.$score.','.$weighting.');</script>';
+	    $jscript2run .= '<script>window.parent.API.void_save_asset('.$score.','.$weighting.');</script>';
 	}
 }
 
@@ -92,7 +92,7 @@ save_scores($test, $score);
 if ($origin != 'learnpath') {
 	// $url = "Hpdownload.php?doc_url=".$test."&cid=".$cid; // back to the test
 	$url = "exercice.php"; // back to exercices
-	$jscript2run .= '<script language="javascript" type="text/javascript">'."window.open('$url', '_top', '')".'</script>';
+	$jscript2run .= '<script>'."window.open('$url', '_top', '')".'</script>';
 	echo $jscript2run;
 } else {
 ?>