Project

General

Profile

Bug #3079 » scorm_tracker_id.patch

Goulwen Reboux, 11/03/2011 15:42

View differences:

php/display/content_object_display/scorm_item.class.php Wed Feb 23 14:48:46 2011 +0100 → php/display/content_object_display/scorm_item.class.php Thu Mar 10 17:30:52 2011 +0100
15 15

  
16 16
    function display_content_object($content_object, $learning_path_item_attempt_data, $continue_url, $previous_url, $jump_urls)
17 17
    {
18
        if ($tracker_attempt_data['active_tracker'])
18
        if ($learning_path_item_attempt_data['active_tracker'])
19 19
        {
20
            $id = $tracker_attempt_data['active_tracker']->get_id();
21
            $tracker_attempt_data['active_tracker']->set_start_time(time());
22
            $tracker_attempt_data['active_tracker']->update();
20
            $id = $learning_path_item_attempt_data['active_tracker']->get_id();
21
            $learning_path_item_attempt_data['active_tracker']->set_start_time(time());
22
            $learning_path_item_attempt_data['active_tracker']->update();
23 23
        }
24 24
        
25 25
        $html[] = '<script type="text/javascript">var tracker_id = ' . $id;
    (1-1/1)