Merge branch 'MDL-71639-fix' of github.com:sarjona/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2021-09-06 17:49:22 +02:00
commit bf87572e0c
2 changed files with 3 additions and 3 deletions

View File

@ -277,9 +277,9 @@ print_collapsible_region_end();
// Output a link to export this single question.
if (question_has_capability_on($question, 'view')) {
if (class_exists('qbank_exporttoxml\\exporttoxml_helper')) {
if (class_exists('qbank_exporttoxml\\helper')) {
if (\core\plugininfo\qbank::is_plugin_enabled('qbank_exporttoxml')) {
$exportfunction = '\\qbank_exporttoxml\\exporttoxml_helper::question_get_export_single_question_url';
$exportfunction = '\\qbank_exporttoxml\\helper::question_get_export_single_question_url';
echo html_writer::link($exportfunction($question),
get_string('exportonequestion', 'question'));
}

View File

@ -11,7 +11,7 @@ This files describes API changes for code that uses the question API.
2) Function question_get_export_single_question_url() in questionlib has been deprecated
and moved to qbank_exporttoxml plugin, the new location is:
qbank_exporttoxml\exporttoxml_helper::question_get_export_single_question_url().
qbank_exporttoxml\helper::question_get_export_single_question_url().
=== 3.9 ==