mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
putting cache buster back in header template arguments
This commit is contained in:
1
app.js
1
app.js
@@ -126,7 +126,6 @@ function start() {
|
||||
upgrade = require('./src/upgrade');
|
||||
|
||||
templates.setGlobal('relative_path', nconf.get('relative_path'));
|
||||
templates.setGlobal('cache-buster', meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '');
|
||||
|
||||
upgrade.check(function(schema_ok) {
|
||||
if (schema_ok || nconf.get('check-schema') === false) {
|
||||
|
||||
@@ -201,6 +201,7 @@ middleware.renderHeader = function(req, res, callback) {
|
||||
bootswatchCSS: meta.config['theme:src'],
|
||||
title: meta.config.title || '',
|
||||
description: meta.config.description || '',
|
||||
'cache-buster': meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '',
|
||||
'brand:logo': meta.config['brand:logo'] || '',
|
||||
'brand:logo:display': meta.config['brand:logo']?'':'hide',
|
||||
csrf: res.locals.csrf_token,
|
||||
|
||||
Reference in New Issue
Block a user