|
@@ -320,15 +320,12 @@ module.exports = function(crowi, app) {
|
|
|
return Promise.resolve();
|
|
return Promise.resolve();
|
|
|
})
|
|
})
|
|
|
.then(function() {
|
|
.then(function() {
|
|
|
- debug(`then 3: ${path}`);
|
|
|
|
|
return interceptorManager.process('beforeRenderPage', req, res, renderVars);
|
|
return interceptorManager.process('beforeRenderPage', req, res, renderVars);
|
|
|
})
|
|
})
|
|
|
.then(function() {
|
|
.then(function() {
|
|
|
- debug(`then 4: ${path}`);
|
|
|
|
|
res.render(req.query.presentation ? 'page_presentation' : pageTeamplate, renderVars);
|
|
res.render(req.query.presentation ? 'page_presentation' : pageTeamplate, renderVars);
|
|
|
})
|
|
})
|
|
|
.catch(function(err) {
|
|
.catch(function(err) {
|
|
|
- debug(`then 5: ${path}`);
|
|
|
|
|
console.log(err);
|
|
console.log(err);
|
|
|
debug('Error on rendering pageListShowForCrowiPlus', err);
|
|
debug('Error on rendering pageListShowForCrowiPlus', err);
|
|
|
});
|
|
});
|