From c448ac2a93d16325cee1603749d8e4cea61ed32a Mon Sep 17 00:00:00 2001 From: Benjamin Walker Date: Fri, 24 May 2024 10:48:04 +1000 Subject: [PATCH] Change hook callback to string --- db/hooks.php | 4 ++-- version.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/hooks.php b/db/hooks.php index 38a690c..dc2ac9c 100644 --- a/db/hooks.php +++ b/db/hooks.php @@ -27,10 +27,10 @@ $callbacks = [ [ 'hook' => \core\hook\output\before_standard_head_html_generation::class, - 'callback' => [\local_csp\hook_callbacks::class, 'before_standard_head_html_generation'], + 'callback' => '\local_csp\hook_callbacks::before_standard_head_html_generation', ], [ 'hook' => \core\hook\output\before_http_headers::class, - 'callback' => [\local_csp\hook_callbacks::class, 'before_http_headers'], + 'callback' => '\local_csp\hook_callbacks::before_http_headers', ], ]; diff --git a/version.php b/version.php index 4693446..58d9099 100644 --- a/version.php +++ b/version.php @@ -25,8 +25,8 @@ defined('MOODLE_INTERNAL') || die; -$plugin->version = 2024052200; -$plugin->release = 2024052200; +$plugin->version = 2024052400; +$plugin->release = 2024052400; $plugin->requires = 2015051100; $plugin->maturity = MATURITY_STABLE; $plugin->component = 'local_csp';