Fix php errors

1.10.x
Julio 9 years ago
parent 5d2a334536
commit 3c1f55735d
  1. 2
      main/exercice/exercise.php
  2. 14
      main/inc/lib/exercise_show_functions.lib.php

@ -675,7 +675,7 @@ if (!empty($exercise_list)) {
}
//$class_tip = 'exercise_link';
$url = $move.'<a '.$alt_title.' class="'.$class_tip.'" id="tooltip_'.$row['id'].'" href="overview.php?'.api_get_cidreq().$myorigin.$mylpid.$mylpitemid.'&exerciseId='.$row['id'].'">
'.Display::returnIconPath('quiz.gif').'
'.Display::return_icon('quiz.gif', $row['title']).'
'.$title.' </a>';
$item = Display::tag('td', $url.' '.$session_img.$lp_blocked);

@ -67,13 +67,13 @@ class ExerciseShowFunctions
public static function display_calculated_answer($feedback_type, $answer, $id, $questionId)
{
if (empty($id)) {
echo '<tr><td>'. (Security::remove_XSS($answer)).'</td></tr>';
echo '<tr><td>'. Security::remove_XSS($answer).'</td></tr>';
} else {
?>
<tr>
<td>
<?php
echo (Security::remove_XSS($answer));
echo Security::remove_XSS($answer);
?>
</td>
@ -97,7 +97,7 @@ class ExerciseShowFunctions
* @param int Question ID
* @return void
*/
static function display_free_answer($feedback_type, $answer, $exe_id, $questionId, $questionScore = null)
public static function display_free_answer($feedback_type, $answer, $exe_id, $questionId, $questionScore = null)
{
$comments = Event::get_comments($exe_id, $questionId);
@ -117,7 +117,7 @@ class ExerciseShowFunctions
}
}
static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $nano = null)
public static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $nano = null)
{
if (isset($nano)) {
echo $nano->show_audio_file();
@ -236,7 +236,7 @@ class ExerciseShowFunctions
* @param boolean Whether to show the answer comment or not
* @return void
*/
static function display_unique_or_multiple_answer(
public static function display_unique_or_multiple_answer(
$feedback_type,
$answerType,
$studentChoice,
@ -257,7 +257,7 @@ class ExerciseShowFunctions
$icon .= $studentChoice?'_on':'_off';
$icon .= '.gif';
$iconAnswer = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION))) ? 'radio':'checkbox';
$iconAnswer = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio':'checkbox';
$iconAnswer .= $answerCorrect?'_on':'_off';
$iconAnswer .= '.gif';
@ -326,7 +326,7 @@ class ExerciseShowFunctions
* @param boolean Whether to show the answer comment or not
* @return void
*/
static function display_multiple_answer_true_false(
public static function display_multiple_answer_true_false(
$feedback_type,
$answerType,
$studentChoice,

Loading…
Cancel
Save