Skip to content

Node.js based forum software built for the modern web

closes #6321

Barış Soner Uşaklı651b1cc9f816
diff --git a/install/data/navigation.json b/install/data/navigation.json
index 8c7965dc7e..3f47367ce8 100644
--- a/install/data/navigation.json
+++ b/install/data/navigation.json
@@ -70,16 +70,5 @@
"targetBlank": false,
"adminOnly": true
}
- },
- {
- "route": "/search",
- "title": "[[global:header.search]]",
- "enabled": true,
- "iconClass": "fa-search",
- "textClass": "visible-xs-inline",
- "text": "[[global:header.search]]",
- "properties": {
- "searchInstalled": true
- }
}
]
\ No newline at end of file
diff --git a/public/language/en-GB/admin/general/navigation.json b/public/language/en-GB/admin/general/navigation.json
index 9abf7f58cc..a199668ae2 100644
--- a/public/language/en-GB/admin/general/navigation.json
+++ b/public/language/en-GB/admin/general/navigation.json
@@ -14,9 +14,6 @@
"only-guest": "Only display to guests",
"open-new-window": "Open in a new window",
- "installed-plugins-required": "Installed Plugins Required:",
- "search-plugin": "Search plugin",
-
"btn.delete": "Delete",
"btn.disable": "Disable",
"btn.enable": "Enable",
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js
index d682faf947..0a3eea6b26 100644
--- a/public/src/modules/helpers.js
+++ b/public/src/modules/helpers.js
@@ -46,8 +46,7 @@
if ((properties.loggedIn && !loggedIn) ||
(properties.guestOnly && loggedIn) ||
(properties.globalMod && !data.isGlobalMod && !data.isAdmin) ||
- (properties.adminOnly && !data.isAdmin) ||
- (properties.searchInstalled && !data.searchEnabled)) {
+ (properties.adminOnly && !data.isAdmin)) {
return false;
}
}
diff --git a/src/views/admin/general/navigation.tpl b/src/views/admin/general/navigation.tpl
index 7be444f3d1..1ba3477a07 100644
--- a/src/views/admin/general/navigation.tpl
+++ b/src/views/admin/general/navigation.tpl
@@ -91,15 +91,6 @@
</label>
</div>
- <strong>[[admin/general/navigation:installed-plugins-required]]</strong>
-
- <div class="checkbox">
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
- <input class="mdl-switch__input" type="checkbox" name="property:searchInstalled" <!-- IF enabled.properties.searchInstalled -->checked<!-- ENDIF enabled.properties.searchInstalled -->/>
- <span class="mdl-switch__label"><strong>[[admin/general/navigation:search-plugin]]</strong></span>
- </label>
- </div>
-
<button class="btn btn-danger delete">[[admin/general/navigation:btn.delete]]</button>
<!-- IF enabled.enabled -->
<button class="btn btn-warning toggle">[[admin/general/navigation:btn.disable]]</button>