Răsfoiți Sursa

Removed deprecated update_message_frame()

Yannick Warnier 15 ani în urmă
părinte
comite
0ffaf3eb04
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  1. 0 3
      main/newscorm/lp_ajax_switch_item.php

+ 0 - 3
main/newscorm/lp_ajax_switch_item.php

@@ -140,7 +140,6 @@ function switch_item_details($lp_id,$user_id,$view_id,$current_item,$next_item)
     if (!empty($myistring)) {
         $myistring = substr($myistring,1);
     }
-error_log('New lesson location: '.$mylesson_location);
     $return .=
             "olms.score=".$myscore.";" .
             "olms.max=".$mymax.";" .
@@ -214,10 +213,8 @@ error_log('New lesson location: '.$mylesson_location);
     $mylp->set_error_msg('');
     $mylp->prerequisites_match(); //check the prerequisites are all complete
     if($debug>1){error_log('Prereq_match() returned '.htmlentities($mylp->error),0);}
-    $return .= "update_message_frame('".str_replace("'","\'",api_htmlentities($mylp->error, ENT_QUOTES, api_get_system_encoding()))."');";
     $_SESSION['scorm_item_id'] = $new_item_id;//Save the new item ID for the exercise tool to use
     $_SESSION['lpobject'] = serialize($mylp);
-error_log('Returning '.$return);
     return $return;
     //return $objResponse;
 }