Skip to content

Commit

Permalink
Make sure that all Boost Union settings are added to the object even …
Browse files Browse the repository at this point in the history
…if the Boost Union config was already included in some other place, resolves #3.
  • Loading branch information
abias committed Mar 13, 2024
1 parent 29d715c commit beb3271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Rolling release

* 2023-03-13 - Make sure that all Boost Union settings are added to the $THEME object even if the Boost Union config was already included in some other place, resolves #3.
* 2023-02-23 - Add example branch which shows how to modify a mustache template from Moodle core.
* 2024-02-23 - Add example branch which shows how to allow the admin to configure a SCSS variable with an admin setting.
* 2024-02-20 - Cleanup and enhance the codebase for adoption and publication by Moodle an Hochschulen e.V.
Expand Down
4 changes: 3 additions & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@

// As a start, inherit the whole theme config from Boost Union.
// This move will save us from duplicating all lines from Boost Union's config.php into Boost Union Child's config.php.
require_once($CFG->dirroot . '/theme/boost_union/config.php');
// This statement uses require (and not require_once) by purpose to make sure that all Boost Union settings are added
// to the $THEME object even if the Boost Union config was already included in some other place.
require($CFG->dirroot . '/theme/boost_union/config.php');

// Then, we require Boost Union Child's locallib.php to make sure that it's always loaded.
require_once($CFG->dirroot . '/theme/boost_union_child/locallib.php');
Expand Down

0 comments on commit beb3271

Please sign in to comment.