MDL-71614 qbank_exporttoxml: Use correct helper class name

This commit is contained in:
Sara Arjona
2021-09-08 15:27:13 +02:00
parent d08cdaadb2
commit 37827bb15d
+2 -2
View File
@@ -267,9 +267,9 @@ $previewdata['techinfo'] .= print_collapsible_region_end(true);
// 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';
$previewdata['exporttoxml'] = html_writer::link($exportfunction($question),
get_string('exportonequestion', 'question'));
}