MDL-71614 qbank_exporttoxml: Use correct helper class name
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user