From d9049ecf13b498810e43983957ea4b7bf7d39b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Gandra=C3=9F?= Date: Tue, 22 Sep 2026 10:05:18 +0200 Subject: [PATCH 1/2] Switch from deprecated quiz_attempts_report class to \mod_quiz\local\reports\attempts_report The quiz_attempts_report class was deprecated in Moodle 4.2 (2023-04-24) and finally removed in Moodle 5.1 (2025-10-06). --- report.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/report.php b/report.php index f288027..5a36221 100644 --- a/report.php +++ b/report.php @@ -24,7 +24,6 @@ defined('MOODLE_INTERNAL') || die(); -require_once($CFG->dirroot . '/mod/quiz/report/attemptsreport.php'); require_once($CFG->dirroot . '/mod/quiz/report/statistics/report.php'); require_once($CFG->dirroot . '/question/type/stack/locallib.php'); @@ -35,7 +34,7 @@ * @copyright 2012 the University of Birmingham * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class quiz_stack_report extends quiz_attempts_report { +class quiz_stack_report extends \mod_quiz\local\reports\attempts_report { /** @var The quiz context. */ protected $context; From 8717b9c9b49de718e474d4462c8eb64dea015d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Gandra=C3=9F?= Date: Tue, 22 Sep 2026 18:19:12 +0200 Subject: [PATCH 2/2] Raise minimum required Moodle version to 4.2 (2023042400) --- version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.php b/version.php index 86fc54f..01cbfd6 100644 --- a/version.php +++ b/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2014111200; -$plugin->requires = 2013101800; +$plugin->requires = 2023042400; $plugin->cron = 0; $plugin->component = 'quiz_stack'; $plugin->maturity = MATURITY_STABLE;