|
@@ -3,9 +3,9 @@
|
|
|
|
|
|
* Class that implements ilm_handle, in order to allow manipulation and management of Java iLM
|
|
|
*
|
|
|
- * @author Igor Moreira Félix
|
|
|
+ * @author Igor Moreira Fe'lix
|
|
|
* @author Patricia Alves Rodrigues
|
|
|
- * @author Leônidas O. Brandão
|
|
|
+ * @author Leo^nidas de Oliveira Branda~o
|
|
|
* @version v 1 2017/17/10
|
|
|
* @package mod_iassign_ilm_handlers
|
|
|
* @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
|
|
@@ -172,7 +172,7 @@ class java implements ilm_handle {
|
|
|
var newText = document.createTextNode("'.get_string('applet_blocked', 'iassign').'");
|
|
|
newCell.appendChild(newText);
|
|
|
}
|
|
|
- </script>';
|
|
|
+ </script>'; // '
|
|
|
return $verify_java . $html;
|
|
|
}
|
|
|
|
|
@@ -212,19 +212,23 @@ class java implements ilm_handle {
|
|
|
|
|
|
if ($ilm_name == "igeom") {
|
|
|
$is_igeom = true;
|
|
|
- $content_or_id_from_ilm_security = $fileid;
|
|
|
+ if (isset($fileid))
|
|
|
+ $content_or_id_from_ilm_security = $fileid;
|
|
|
if ($special_param1 == 1 && !empty($student_answer) && (!$view_teacherfileversion)) {
|
|
|
$view_teacherfileversion = true;
|
|
|
}
|
|
|
- elseif (!$view_teacherfileversion) {
|
|
|
+ elseif (!$view_teacherfileversion) {
|
|
|
$content_or_id_from_ilm_security = $student_answer;
|
|
|
}
|
|
|
+ else
|
|
|
+ $content_or_id_from_ilm_security = $fileid;
|
|
|
}
|
|
|
else {
|
|
|
if ($view_teacherfileversion) {
|
|
|
|
|
|
$content_or_id_from_ilm_security = $fileid;
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
$content_or_id_from_ilm_security = $student_answer;
|
|
|
}
|
|
|
}
|