|
|
|
@ -3875,9 +3875,10 @@ class Exercise |
|
|
|
|
* @param array $user_data result of api_get_user_info() |
|
|
|
|
* @param null $start_date |
|
|
|
|
* @param null $duration |
|
|
|
|
* @param string The user IP |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function show_exercise_result_header($user_data, $start_date = null, $duration = null) |
|
|
|
|
public function show_exercise_result_header($user_data, $start_date = null, $duration = null, $ip = null) |
|
|
|
|
{ |
|
|
|
|
$array = array(); |
|
|
|
|
|
|
|
|
@ -3907,6 +3908,10 @@ class Exercise |
|
|
|
|
$array[] = array('title' => get_lang("Duration"), 'content' => $duration); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($ip)) { |
|
|
|
|
$array[] = array("title" => get_lang("IP"), "content" => $ip); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$html = Display::page_header( |
|
|
|
|
Display::return_icon('quiz_big.png', get_lang('Result')).' '.$this->exercise.' : '.get_lang('Result') |
|
|
|
|
); |
|
|
|
|