Explorar o código

[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 %!s(int64=17) %!d(string=hai) anos
pai
achega
1af3cfc52f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 	}