From 7cdb34aacf083d47965c132df1ec32b094ee608a Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Mon, 6 Sep 2021 15:40:11 +0200 Subject: [PATCH] MDL-71639 qbank_exporttoxml: Use correct helper class name --- question/preview.php | 4 ++-- question/upgrade.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/question/preview.php b/question/preview.php index 899da99c711..fe1a9f9621c 100644 --- a/question/preview.php +++ b/question/preview.php @@ -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')); } diff --git a/question/upgrade.txt b/question/upgrade.txt index 25f85e2852b..4e5fe18f922 100644 --- a/question/upgrade.txt +++ b/question/upgrade.txt @@ -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 ==