Skip to content

Commit

Permalink
Merge branch 'MDL-71614-fix' of github.com:sarjona/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Sep 8, 2021
2 parents d08cdaa + 573b035 commit 09825b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions question/bank/previewquestion/preview.php
Expand Up @@ -267,9 +267,9 @@

// 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'));
}
Expand Down
Expand Up @@ -65,7 +65,7 @@
<input type="button" name="close" value="{{#str}} closepreview, question{{/str}}" class="btn btn-secondary" id="close-previewquestion-page">
{{/redirect}}
{{#redirect}}
<a href="{{{redirecturl}}}" class="btn btn-secondary">{{#str}} closepreview, question{{/str}}</a>
<a href="{{{redirecturl}}}" class="btn btn-secondary" role="button">{{#str}} closepreview, question{{/str}}</a>
{{/redirect}}
</div>
</form>
Expand Down

0 comments on commit 09825b1

Please sign in to comment.