mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-68757 questions: don't do output in low-level functions
This commit is contained in:
parent
d85118369d
commit
4a45b7112c
7 changed files with 52 additions and 131 deletions
|
@ -1054,10 +1054,7 @@ function course_delete_module($cmid, $async = false) {
|
|||
}
|
||||
}
|
||||
|
||||
// Delete activity context questions and question categories.
|
||||
$showinfo = !defined('AJAX_SCRIPT') || AJAX_SCRIPT == '0';
|
||||
|
||||
question_delete_activity($cm, $showinfo);
|
||||
question_delete_activity($cm);
|
||||
|
||||
// Call the delete_instance function, if it returns false throw an exception.
|
||||
if (!$deleteinstancefunction($cm->instance)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue