[svn r13305] Only show debug for course admin (even if activated)

skala
Yannick Warnier 18 years ago
parent 7fd9021240
commit 7137e0423c
  1. 2
      main/newscorm/scorm_api.php

@ -72,7 +72,7 @@ $autocomplete_when_80pct = 0;
JavaScript Functions
==============================================================================
*/
?>var scorm_logs='<?php echo (empty($oLP->scorm_debug)?'0':'3');?>'; //debug log level for SCORM. 0 = none, 1=light, 2=a lot, 3=all - displays logs in log frame
?>var scorm_logs='<?php echo ((empty($oLP->scorm_debug) or !api_is_course_admin())?'0':'3');?>'; //debug log level for SCORM. 0 = none, 1=light, 2=a lot, 3=all - displays logs in log frame
var lms_logs=0; //debug log level for LMS actions. 0=none, 1=light, 2=a lot, 3=all
//logit_lms('scormfunctions.php included',0);

Loading…
Cancel
Save