0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

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 // Expose the promise we will resolve after our pre-loading
ghost.loaded = loading.promise; 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 // ##Configuration
var oneYear = 31536000000; var oneYear = 31536000000;