mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: #8968, don't show topic search if search is not enabled
This commit is contained in:
@@ -444,6 +444,9 @@ app.cacheBuster = null;
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.enableTopicSearch = function (options) {
|
app.enableTopicSearch = function (options) {
|
||||||
|
if (!config.searchEnabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* eslint-disable-next-line */
|
/* eslint-disable-next-line */
|
||||||
var searchOptions = Object.assign({ in: 'titles' }, options.searchOptions);
|
var searchOptions = Object.assign({ in: 'titles' }, options.searchOptions);
|
||||||
var quickSearchResults = options.searchElements.resultEl;
|
var quickSearchResults = options.searchElements.resultEl;
|
||||||
|
|||||||
Reference in New Issue
Block a user