From bf4d466f268bcfce49a47666dcfab61d419d3237 Mon Sep 17 00:00:00 2001 From: Benjamin Walker Date: Fri, 24 May 2024 10:52:25 +1000 Subject: [PATCH] Change hook callback to string --- 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 cf59f20..cf13ee4 100644 --- a/db/hooks.php +++ b/db/hooks.php @@ -28,7 +28,7 @@ $callbacks = [ [ 'hook' => \core\hook\output\before_http_headers::class, - 'callback' => [\tool_redirects\hook_callbacks::class, 'before_http_headers'], + 'callback' => '\tool_redirects\hook_callbacks::before_http_headers', 'priority' => 0, ], ]; diff --git a/version.php b/version.php index 726cd16..8d36087 100644 --- a/version.php +++ b/version.php @@ -25,8 +25,8 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024052000; -$plugin->release = 2024052000; // Match release exactly to version. +$plugin->version = 2024052400; +$plugin->release = 2024052400; // Match release exactly to version. $plugin->requires = 2017051500; // Moodle 3.3. $plugin->component = 'tool_redirects'; $plugin->maturity = MATURITY_STABLE;