浏览代码

Allow platform admin to see debug block in SCORM - refs BT#5198

Yannick Warnier 12 年之前
父节点
当前提交
53bbeb4590
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main/newscorm/scorm_api.php

+ 2 - 2
main/newscorm/scorm_api.php

@@ -48,7 +48,7 @@ header('Content-type: text/javascript');
 /*
  * JavaScript Functions
  */
-?>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 scorm_logs=<?php echo ((empty($oLP->scorm_debug) or (!api_is_course_admin() && !api_is_platform_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);
 
@@ -1918,4 +1918,4 @@ function attach_glossary_into_scorm(type) {
             });          
         }
     }
-}
+}