summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Search
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/lib/Search')
-rw-r--r--apps/settings/lib/Search/SectionSearch.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/settings/lib/Search/SectionSearch.php b/apps/settings/lib/Search/SectionSearch.php
index 67dc0f5d156..e9cd9615db7 100644
--- a/apps/settings/lib/Search/SectionSearch.php
+++ b/apps/settings/lib/Search/SectionSearch.php
@@ -35,7 +35,7 @@ use OCP\Search\IProvider;
use OCP\Search\ISearchQuery;
use OCP\Search\SearchResult;
use OCP\Search\SearchResultEntry;
-use OCP\Settings\ISection;
+use OCP\Settings\IIconSection;
use OCP\Settings\IManager;
class SectionSearch implements IProvider {
@@ -117,7 +117,7 @@ class SectionSearch implements IProvider {
/**
* @param ISearchQuery $query
- * @param ISection[][] $sections
+ * @param IIconSection[][] $sections
* @param string $subline
* @param string $routeName
* @return array
@@ -135,10 +135,7 @@ class SectionSearch implements IProvider {
/**
* We can't use the icon URL at the moment as they don't invert correctly for dark theme
- * $iconUrl = '';
- * if ($section instanceof IIconSection) {
* $iconUrl = $section->getIcon();
- * }
*/
$result[] = new SearchResultEntry(