Skip to content

Commit

Permalink
Include path for parent class preview_action_column.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Aug 16, 2024
1 parent 2390bb3 commit 78a4690
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions classes/question/bank/sq_preview_action.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 78a4690

Please sign in to comment.