Procházet zdrojové kódy

[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 před 17 roky
rodič
revize
1af3cfc52f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();
 	}