From dae83f45ba49611c1cd3bfa4162a0834934c286f Mon Sep 17 00:00:00 2001 From: Benjamin Walker <132629557+bwalkerl@users.noreply.github.com> Date: Fri, 24 May 2024 15:56:32 +1000 Subject: [PATCH] Change hook callback to string #336 (#337) --- db/hooks.php | 2 +- version.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/hooks.php b/db/hooks.php index 087e3f9..ed5de66 100644 --- a/db/hooks.php +++ b/db/hooks.php @@ -28,7 +28,7 @@ defined('MOODLE_INTERNAL') || die(); $callbacks = [ [ 'hook' => \core\hook\output\before_standard_top_of_body_html_generation::class, - 'callback' => [\auth_outage\hook_callbacks::class, 'before_standard_top_of_body_html_generation'], + 'callback' => '\auth_outage\hook_callbacks::before_standard_top_of_body_html_generation', 'priority' => 0, ], ]; diff --git a/version.php b/version.php index 84dc160..444264d 100644 --- a/version.php +++ b/version.php @@ -28,8 +28,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = "auth_outage"; -$plugin->version = 2024052000; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = 2024052000; // Human-readable release information. +$plugin->version = 2024052400; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = 2024052400; // Human-readable release information. $plugin->requires = 2017111309; // 2017111309 = T13, but this really requires 3.9 and higher. $plugin->maturity = MATURITY_STABLE; // Suitable for PRODUCTION environments! $plugin->supported = [39, 404]; // A range of branch numbers of supported moodle versions.