send option to user settings page if in-topic search is available (#4627)

v1.18.x
pichalite 9 years ago committed by Julian Lam
parent 89c3d39486
commit ce66dd96a9

@ -126,6 +126,8 @@ settingsController.get = function(req, res, callback) {
userData.allowUserHomePage = parseInt(meta.config.allowUserHomePage, 10) === 1;
userData.inTopicSearchAvailable = plugins.hasListeners('filter:topic.search');
userData.title = '[[pages:account/settings]]';
userData.breadcrumbs = helpers.buildBreadcrumbs([{text: userData.username, url: '/user/' + userData.userslug}, {text: '[[user:settings]]'}]);

Loading…
Cancel
Save