crash fix

v1.18.x
barisusakli 10 years ago
parent d07fca6907
commit aec4ee5392

@ -297,7 +297,7 @@ middleware.renderHeader = function(req, res, callback) {
templateValues.customCSS = results.customCSS;
templateValues.customJS = results.customJS;
templateValues.maintenanceHeader = parseInt(meta.config.maintenanceMode, 10) === 1 && !results.isAdmin;
templateValues.defaultLang = res.locals.config.defaultLang;
templateValues.defaultLang = meta.config.defaultLang || 'en_GB';
templateValues.template = {name: res.locals.template};
templateValues.template[res.locals.template] = true;

Loading…
Cancel
Save