From 27bc69e45b3e9be81818391d615949be82007471 Mon Sep 17 00:00:00 2001 From: Andreas Grabs Date: Thu, 1 Feb 2024 17:14:03 +0100 Subject: [PATCH] mod_collabora: fix in 4.1 undefined constant PRIMARY_BUTTON --- CHANGES.md | 3 +++ classes/output/confirmation.php | 2 +- version.php | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ca08a6e..2734d2d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,9 @@ moodle-mod_collabora Changes ------- +### v4.3.2 +* 2024-02-01 - Fix in 4.1 undefined constant PRIMARY_BUTTON in class single_button + ### v4.3.1 * 2024-01-07 - Adding postmessage support which brings features like version management or switching the user interface * 2024-01-07 - Compatibility to Moodle 4.3 diff --git a/classes/output/confirmation.php b/classes/output/confirmation.php index 76c5265..d6eabda 100644 --- a/classes/output/confirmation.php +++ b/classes/output/confirmation.php @@ -47,7 +47,7 @@ public function __construct(\moodle_url $confirmurl, \moodle_url $cancelurl, $confirmlabel = $confirmlabel === null ? get_string('ok') : $confirmlabel; $cancellabel = $cancellabel === null ? get_string('cancel') : $cancellabel; - $confirmbutton = new \single_button($confirmurl, $confirmlabel, 'post', \single_button::BUTTON_PRIMARY); + $confirmbutton = new \single_button($confirmurl, $confirmlabel, 'post', 'primary'); $cancelbutton = new \single_button($cancelurl, $cancellabel, 'get'); $this->data = new \stdClass(); $this->data->title = $title; diff --git a/version.php b/version.php index 63f38d8..3f0bc1e 100644 --- a/version.php +++ b/version.php @@ -23,8 +23,8 @@ */ defined('MOODLE_INTERNAL') || die; -$plugin->version = 2024010700; -$plugin->release = 'v4.3.1 (2024-01-11)'; +$plugin->version = 2024020100; +$plugin->release = 'v4.3.2 (2024-02-01)'; $plugin->requires = 2022111800; // Moodle 4.1. $plugin->component = 'mod_collabora'; $plugin->maturity = MATURITY_BETA;