mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-71639 qbank_exporttoxml: Use correct helper class name
This commit is contained in:
parent
2c90221888
commit
7cdb34aacf
2 changed files with 3 additions and 3 deletions
|
@ -277,9 +277,9 @@ print_collapsible_region_end();
|
||||||
|
|
||||||
// Output a link to export this single question.
|
// Output a link to export this single question.
|
||||||
if (question_has_capability_on($question, 'view')) {
|
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')) {
|
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),
|
echo html_writer::link($exportfunction($question),
|
||||||
get_string('exportonequestion', 'question'));
|
get_string('exportonequestion', 'question'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
2) Function question_get_export_single_question_url() in questionlib has been deprecated
|
||||||
and moved to qbank_exporttoxml plugin, the new location is:
|
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 ==
|
=== 3.9 ==
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue