mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 19:29:47 +08:00
This small fix prevents that the forum frontend breaks whenever
custom_less is NULL or unavailable in the database. We cannot rely on this value to exist or is incorrectly set to null and thus completely bricking the app.
This commit is contained in:
parent
bbc2deeca2
commit
860ac26841
|
@ -94,7 +94,7 @@ class ForumServiceProvider extends AbstractServiceProvider
|
||||||
$assets->css(function (SourceCollector $sources) {
|
$assets->css(function (SourceCollector $sources) {
|
||||||
$sources->addFile(__DIR__.'/../../less/forum.less');
|
$sources->addFile(__DIR__.'/../../less/forum.less');
|
||||||
$sources->addString(function () {
|
$sources->addString(function () {
|
||||||
return $this->app->make(SettingsRepositoryInterface::class)->get('custom_less');
|
return $this->app->make(SettingsRepositoryInterface::class)->get('custom_less') ?? '';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user