mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed boot order for themes services
refs c33b596e9c
- initializing the themes service before the custom theme settings service meant that `customThemeSettings.api` was not available when it's called as part of theme initialization
- swapped the boot order around so that the supporting service initialization is performed before the full themes service is initialized
This commit is contained in:
parent
8737ec8888
commit
3fd2e36720
1 changed files with 3 additions and 2 deletions
|
@ -117,10 +117,11 @@ async function initServicesForFrontend() {
|
||||||
debug('End: Routing Settings');
|
debug('End: Routing Settings');
|
||||||
|
|
||||||
debug('Begin: Themes');
|
debug('Begin: Themes');
|
||||||
const themeService = require('./server/services/themes');
|
// customThemSettingsService.api must be initialized before any theme activation occurs
|
||||||
await themeService.init();
|
|
||||||
const customThemeSettingsService = require('./server/services/custom-theme-settings');
|
const customThemeSettingsService = require('./server/services/custom-theme-settings');
|
||||||
customThemeSettingsService.init();
|
customThemeSettingsService.init();
|
||||||
|
const themeService = require('./server/services/themes');
|
||||||
|
await themeService.init();
|
||||||
debug('End: Themes');
|
debug('End: Themes');
|
||||||
|
|
||||||
debug('End: initServicesForFrontend');
|
debug('End: initServicesForFrontend');
|
||||||
|
|
Loading…
Add table
Reference in a new issue