Skip to content

Commit

Permalink
MBS-9795: Fix problem during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Dec 16, 2024
1 parent 1df5192 commit 81870d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/local/hook_callbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class hook_callbacks {
public static function inject_backlinks_into_activity_header(before_http_headers $beforehttpheadershook): void {
global $OUTPUT, $PAGE;

// Don't run during initial install.
if (during_initial_install()) {
return;
}

if (get_config('mod_learningmap', 'backlinkallowed') == 0) {
return;
}
Expand Down

0 comments on commit 81870d3

Please sign in to comment.