|
|
@@ -273,12 +273,13 @@ module.exports = function(crowi, app) {
|
|
|
return Promise.resolve();
|
|
|
})
|
|
|
.then(function() {
|
|
|
- return Page.checkIfTemplatesExist(originalPath)
|
|
|
- .then(function(templateInfo) {
|
|
|
- renderVars.localTemplateExists = templateInfo.localTemplateExists;
|
|
|
- renderVars.globalTemplateExists = templateInfo.globalTemplateExists;
|
|
|
- });
|
|
|
- }).then(function() {
|
|
|
+ return Page.checkIfTemplatesExist(originalPath);
|
|
|
+ })
|
|
|
+ .then(function(templateInfo) {
|
|
|
+ renderVars.localTemplateExists = templateInfo.localTemplateExists;
|
|
|
+ renderVars.globalTemplateExists = templateInfo.globalTemplateExists;
|
|
|
+ })
|
|
|
+ .then(function() {
|
|
|
var userPage = isUserPage(page.path);
|
|
|
var userData = null;
|
|
|
|