Permalink
Browse files

MDL-25316 quiz_get_extra_capabilities() does not need to fetch subcap…

…abilities explicitly
  • Loading branch information...
1 parent 61869c5 commit d774e8171a047ec63563669c95c08e60db1f4dde @mudrd8mz mudrd8mz committed Dec 2, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 mod/quiz/lib.php
View
@@ -1625,11 +1625,9 @@ function quiz_supports($feature) {
* @return array all other caps used in module
*/
function quiz_get_extra_capabilities() {
- global $DB, $CFG;
+ global $CFG;
require_once($CFG->libdir.'/questionlib.php');
$caps = question_get_all_capabilities();
- $reportcaps = $DB->get_records_select_menu('capabilities', 'name LIKE ?', array('quizreport/%'), 'id,name');
- $caps = array_merge($caps, $reportcaps);
$caps[] = 'moodle/site:accessallgroups';
return $caps;
}

0 comments on commit d774e81

Please sign in to comment.