Skip to content

Commit

Permalink
Get "activeTheme" from settings"
Browse files Browse the repository at this point in the history
closes TryGhost#107
- removed "activeTheme" from config.js
- read "activeTheme" from db setting
  • Loading branch information
sebgie committed Aug 26, 2013
1 parent 3209a96 commit 5f821eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ config.forceI18n = true;

// ## Themes & Plugins

// Current active theme
config.activeTheme = 'casper';

// Current active plugins
config.activePlugins = [
'FancyFirstChar'
Expand Down
2 changes: 1 addition & 1 deletion core/ghost.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Ghost = function () {
'appRoot': appRoot,
'themePath': themePath,
'pluginPath': pluginPath,
'activeTheme': path.join(themePath, config.activeTheme),
'activeTheme': path.join(themePath, !instance.settingsCache ? "" : instance.settingsCache.activeTheme),
'adminViews': path.join(appRoot, '/core/server/views/'),
'helperTemplates': path.join(appRoot, '/core/server/helpers/tpl/'),
'lang': path.join(appRoot, '/core/shared/lang/'),
Expand Down

0 comments on commit 5f821eb

Please sign in to comment.