hiding search buttons and route when search is not configured

This commit is contained in:
Julian Lam
2014-02-20 21:21:41 -05:00
parent 0e26fdf1da
commit 2ba11dce15
3 changed files with 10 additions and 1 deletions

View File

@@ -104,7 +104,8 @@ module.exports.server = server;
clientScripts: clientScripts,
navigation: custom_header.navigation,
'cache-buster': meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '',
allowRegistration: meta.config.allowRegistration === undefined || parseInt(meta.config.allowRegistration, 10) === 1
allowRegistration: meta.config.allowRegistration === undefined || parseInt(meta.config.allowRegistration, 10) === 1,
searchEnabled: plugins.hasListeners('filter:search.query') ? true : false
},
escapeList = {
'&': '&',