MDL-20636 Massively reduce the number of references to quiz in the question code.
This mostly involves moving lang strings around, but I don't have time to do an AMOS script now.
This commit is contained in:
+1
-3
@@ -43,9 +43,7 @@ if (empty($categoryid)) {
|
||||
}
|
||||
|
||||
list($catid, $catcontext) = explode(',', $pagevars['cat']);
|
||||
if (!$category = $DB->get_record("question_categories", array("id" => $catid, 'contextid' => $catcontext))) {
|
||||
print_error('nocategory','quiz');
|
||||
}
|
||||
$category = $DB->get_record('question_categories', array("id" => $catid, 'contextid' => $catcontext), '*', MUST_EXIST);
|
||||
|
||||
/// Header
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
|
||||
Reference in New Issue
Block a user