Skip to content

Commit

Permalink
Fix partials in themes
Browse files Browse the repository at this point in the history
closes #884
- changed init sequence of ghost and helpers
  • Loading branch information
sebgie committed Sep 26, 2013
1 parent 0ef99ad commit 59b57b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ function manageAdminAndTheme(req, res, next) {
// Expose the promise we will resolve after our pre-loading
ghost.loaded = loading.promise;

when.all([ghost.init(), helpers.loadCoreHelpers(ghost)]).then(function () {
when(ghost.init()).then(function () {
return helpers.loadCoreHelpers(ghost);
}).then(function () {

// ##Configuration
var oneYear = 31536000000;
Expand Down

0 comments on commit 59b57b8

Please sign in to comment.