mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merge branch 'MDL-61715-master' of https://github.com/lethevinh/moodle
This commit is contained in:
commit
e6c1e22197
@ -57,10 +57,12 @@ class qbank_chooser extends \core\output\chooser {
|
||||
return new qbank_chooser_item($qtype, $context);
|
||||
}, $real));
|
||||
|
||||
$sections[] = new chooser_section('other', new lang_string('other'),
|
||||
array_map(function($qtype) use ($context) {
|
||||
if (!empty($fake)) {
|
||||
$sections[] = new chooser_section('other', new lang_string('other'),
|
||||
array_map(function ($qtype) use ($context) {
|
||||
return new qbank_chooser_item($qtype, $context);
|
||||
}, $fake));
|
||||
}
|
||||
|
||||
parent::__construct(new moodle_url('/question/question.php'),
|
||||
new lang_string('chooseqtypetoadd', 'question'), $sections, 'qtype');
|
||||
|
Loading…
x
Reference in New Issue
Block a user