mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05: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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue