mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-01 04:09:51 +01:00
fix crash in header
This commit is contained in:
@@ -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 || '',
|
||||
|
||||
Reference in New Issue
Block a user