mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Update activeTheme path on theme switch
fixes #1583 - the active theme path wasn't getting updated when we were switching theme
This commit is contained in:
parent
0582470682
commit
dedc5d9239
@ -89,6 +89,9 @@ function activateTheme() {
|
||||
return stackItem.route === '' && stackItem.handle.name === 'settingEnabled';
|
||||
}));
|
||||
|
||||
// Tell the paths to update
|
||||
config.paths.setActiveTheme(ghost);
|
||||
|
||||
// clear the view cache
|
||||
ghost.server.cache = {};
|
||||
ghost.server.disable(ghost.server.get('activeTheme'));
|
||||
|
Loading…
Reference in New Issue
Block a user