瀏覽代碼

[svn r12965] Now using an additional parameter in the call to learnpath::start_current_item() to trigger a possibly new attempt (this is the only code authorized to do this)

Yannick Warnier 17 年之前
父節點
當前提交
1af3cfc52f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/newscorm/lp_comm.server.php

+ 1 - 1
main/newscorm/lp_comm.server.php

@@ -236,7 +236,7 @@ function switch_item_details($lp_id,$user_id,$view_id,$current_item,$next_item)
 			if($debug>1){error_log('In {default} - next item is '.$new_item_id.'(current: '.$current_item.')',0);}
 			break;
 	}
-	$mylp->start_current_item();
+	$mylp->start_current_item(true);
 	if($mylp->force_commit){
 		$mylp->save_current();
 	}