From bef0d67e6cea8dd8b212a51091ba96a9761f6d14 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 30 Dec 2019 17:41:33 -0500 Subject: [PATCH] Disable default search module ' --- includes/SkinCitizen.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/includes/SkinCitizen.php b/includes/SkinCitizen.php index e978dfaf..adc7afa8 100644 --- a/includes/SkinCitizen.php +++ b/includes/SkinCitizen.php @@ -195,6 +195,20 @@ class SkinCitizen extends SkinTemplate { } } + /** + * Returns the javascript entry modules to load. Only modules that need to + * be overriden or added conditionally should be placed here. + * @return array + */ + public function getDefaultModules() { + $modules = parent::getDefaultModules(); + + // disable default skin search modules + $modules['search'] = []; + + return $modules; + } + /** * Adds all needed skin modules */