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:
Hannah Wolfe 2013-11-28 16:10:34 +00:00
parent 0582470682
commit dedc5d9239

View File

@ -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'));