Permalink
Browse files

MDL-27523 Minor Edits

  • Loading branch information...
1 parent 5e3014d commit f8f34f823dad4d134946ecf98fe32d2918967e43 @ankitagarwal ankitagarwal committed with danmarsden Jul 12, 2011
Showing with 2 additions and 14 deletions.
  1. +1 −1 mod/scorm/db/subplugins.php
  2. +0 −12 mod/scorm/report/basic/report.php
  3. +1 −1 mod/scorm/report/reportlib.php
@@ -1,3 +1,3 @@
<?php
-$subplugins = array('scorm'=>'mod/scorm/report');
+$subplugins = array('scormreport'=>'mod/scorm/report');
@@ -523,16 +523,4 @@ function display($scorm, $cm, $course, $download) {
echo $OUTPUT->notification(get_string('noactivity', 'scorm'));
}
}// function ends
-
- /**
- * only users with mod/scorm:viewreport can see this plugin.
- * @param stdclass $context - context object
- * @return boolean
- */
- function canview($context) {
- if (has_capability('mod/scorm:viewreport', $context)) {
- return true;
- }
- return false;
- }
}
@@ -29,7 +29,7 @@ function scorm_report_list($context) {
if (!empty($reportlist)) {
return $reportlist;
}
- $reportdirs = get_plugin_list('scorm');
+ $reportdirs = get_plugin_list('scormreport');
foreach ($reportdirs as $reportname => $notused) {
$pluginfile = $CFG->dirroot.'/mod/scorm/report/'.$reportname.'/report.php';
if (is_readable($pluginfile)) {

0 comments on commit f8f34f8

Please sign in to comment.