]> BookStack Code Mirror - bookstack/commit
Theme: Added handling for functions.php file load error
authorDan Brown <redacted>
Tue, 12 Sep 2023 11:34:02 +0000 (12:34 +0100)
committerDan Brown <redacted>
Tue, 12 Sep 2023 11:34:02 +0000 (12:34 +0100)
commit6e098905d48e7dab7c43662b895e9dcf00659fb2
tree578aa6cdc10ffd366084cd7b49517debada8e171
parent8e3f8de6278c455d529f14e8dfb245dd81e3d1aa
Theme: Added handling for functions.php file load error

This adds specific handling for functions.php error loading to re-throw
errors wrapped in a more descriptive message, to make it clear the error
is due to an issue in their functions.php file.

Decided to throw and stop, rather than ignore & continue, to be on the
safe side in the event auth-level (or other security level) customizations
have been made via functions.php.

Adds test to cover.
Closes #4504
app/Exceptions/ThemeException.php [new file with mode: 0644]
app/Theming/ThemeService.php
resources/views/layouts/base.blade.php
tests/ThemeTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.