Skip to content

Commit

Permalink
mod_collabora: fix in 4.1 undefined constant PRIMARY_BUTTON
Browse files Browse the repository at this point in the history
  • Loading branch information
grabs committed Feb 1, 2024
1 parent 6adc3b3 commit 27bc69e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion classes/output/confirmation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 27bc69e

Please sign in to comment.