fix crash in header

This commit is contained in:
Barış Soner Uşaklı
2017-04-24 13:30:01 -04:00
parent 066e54474e
commit 4900f21dd5

View File

@@ -41,6 +41,7 @@ module.exports = function (middleware) {
middleware.renderHeader = function (req, res, data, callback) {
var registrationType = meta.config.registrationType || 'normal';
res.locals.config = res.locals.config || {};
var templateValues = {
title: meta.config.title || '',
description: meta.config.description || '',