Fix partials in themes

closes #884
- changed init sequence of ghost and helpers
This commit is contained in:
Sebastian Gierlinger 2013-09-26 22:30:45 +02:00
parent 0ef99ad393
commit 59b57b84e0

View File

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