sou 7 лет назад
Родитель
Сommit
8f323794b7
1 измененных файлов с 7 добавлено и 6 удалено
  1. 7 6
      lib/routes/page.js

+ 7 - 6
lib/routes/page.js

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