mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 19:42:35 +02:00
Merge branch 'MDL-83920-main' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
158649ff5f
@ -1024,6 +1024,7 @@ class qformat_default {
|
||||
|
||||
// Did we actually process anything? Then continue path for following error checks.
|
||||
if ($count==0) {
|
||||
$contextid = $DB->get_field('question_categories', 'contextid', ['id' => $this->category->id]);
|
||||
$context = context::instance_by_id($contextid);
|
||||
$continuepath = "{$CFG->wwwroot}/question/bank/exportquestions/export.php?cmid={$context->instanceid}";
|
||||
throw new \moodle_exception('noquestions', 'question', $continuepath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user