瀏覽代碼

[svn r10138] Added code for exercises results recovery

Yannick Warnier 18 年之前
父節點
當前提交
c053fa350f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      main/newscorm/lp_view.php

+ 4 - 0
main/newscorm/lp_view.php

@@ -67,6 +67,10 @@ $lp_item_id = $_SESSION['oLP']->get_current_item_id();
 //$lp_item_id = learnpath::escape_string($_GET['item_id']);
 //$_SESSION['oLP']->set_current_item($lp_item_id); // already done by lp_controller.php
 
+//Prepare variables for the test tool (just in case) - honestly, this should disappear later on
+$_SESSION['scorm_view_id'] = $_SESSION['oLP']->get_view_id();
+api_session_unregister($exerciseResult);
+
 /**
  * Get a link to the corresponding document
  */