From 78a46908143be65ac7a343de1e8464a8acce1751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Mon, 20 Nov 2023 18:47:06 +0100 Subject: [PATCH] Include path for parent class preview_action_column.php. --- .github/workflows/moodle-plugin-ci.yml | 8 +++++--- classes/question/bank/sq_preview_action.php | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/moodle-plugin-ci.yml b/.github/workflows/moodle-plugin-ci.yml index 53131453..648cf98c 100644 --- a/.github/workflows/moodle-plugin-ci.yml +++ b/.github/workflows/moodle-plugin-ci.yml @@ -36,9 +36,11 @@ jobs: # - each moodle version at least once # - each database at least once include: - - {php: '8.1', moodle-branch: MOODLE_403_STABLE, database: mariadb} - - {php: '8.2', moodle-branch: MOODLE_404_STABLE, database: pgsql} - - {php: '8.2', moodle-branch: main, database: mariadb} + - {php: '7.4', moodle-branch: MOODLE_401_STABLE, database: mariadb} + - {php: '8.0', moodle-branch: MOODLE_402_STABLE, database: pgsql} + - {php: '8.2', moodle-branch: MOODLE_403_STABLE, database: mariadb} + - {php: '8.3', moodle-branch: MOODLE_404_STABLE, database: pgsql} + - {php: '8.1', moodle-branch: main, database: pgsql} steps: - name: Check out repository code diff --git a/classes/question/bank/sq_preview_action.php b/classes/question/bank/sq_preview_action.php index bffaeb8e..eb41560e 100644 --- a/classes/question/bank/sq_preview_action.php +++ b/classes/question/bank/sq_preview_action.php @@ -20,6 +20,14 @@ class_alias('\qbank_previewquestion\preview_action_column', '\qbank_previewquestion\preview_action'); } +defined('MOODLE_INTERNAL') || die(); + +if (file_exists($CFG->dirroot.'/mod/quiz/classes/question/bank/preview_action_column.php')) { + require_once($CFG->dirroot.'/mod/quiz/classes/question/bank/preview_action_column.php'); +} + +use qbank_previewquestion\preview_action_column; + /** * A action type for preview link to mod_studentquiz_preview *