Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

services:
postgres:
image: postgres:13
image: postgres:15
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
Expand All @@ -30,18 +30,12 @@ jobs:
fail-fast: false
matrix:
include:
- php: '8.2'
moodle-branch: 'main'
database: 'pgsql'
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
- php: '8.3'
moodle-branch: 'MOODLE_405_STABLE'
database: 'mariadb'
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
- php: '8.2'
moodle-branch: 'MOODLE_404_STABLE'
database: 'pgsql'
- php: '7.4'
moodle-branch: 'MOODLE_401_STABLE'
database: 'mariadb'

steps:
- name: Check out repository code
Expand Down
3 changes: 3 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Changes in 1.1
* Added support for Moodle 4.5+

## Changes in 1.0

* Initial release - a port of the equivalent Atto plugin.
3 changes: 2 additions & 1 deletion classes/plugininfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugininfo extends plugin implements plugin_with_configuration {

#[\Override]
public static function is_enabled(context $context, array $options, array $fpoptions,
?\editor_tiny\editor $editor = null): bool {
// Users must have permission to embed content.
Expand All @@ -39,6 +39,7 @@ public static function is_enabled(context $context, array $options, array $fpopt
return has_any_capability(['moodle/question:useall', 'moodle/question:usemine'], $context);
}

#[\Override]
public static function get_plugin_configuration_for_context(
context $context,
array $options,
Expand Down
2 changes: 1 addition & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements \core_privacy\local\metadata\null_provider {

#[\Override]
public static function get_reason(): string {
return 'privacy:metadata';
}
Expand Down
8 changes: 4 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024011100;
$plugin->requires = 2022112800;
$plugin->version = 2025082700;
$plugin->requires = 2024042200; // Requires Moodle 4.4.
$plugin->component = 'tiny_embedquestion';
$plugin->release = '1.0';
$plugin->release = '1.1';
$plugin->maturity = MATURITY_STABLE;

$plugin->dependencies = [
'filter_embedquestion' => 2022032900,
'filter_embedquestion' => 2025050100,
];

$plugin->outestssufficient = true;
Loading