Skip to content

Commit

Permalink
Change hook callback to string
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl committed May 24, 2024
1 parent a5a3e48 commit c448ac2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit c448ac2

Please sign in to comment.