summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Search
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-28 22:51:49 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-10-28 23:05:00 +0100
commitb8ed99723822d23c9a3a0b413eb237c93fc60c99 (patch)
treea3e2136a5faa0ac5bca63d3d2f6936272edbd0db /apps/settings/lib/Search
parentef382f541c42f719b8dd30a4e0e248ef1bc39c84 (diff)
downloadnextcloud-server-b8ed99723822d23c9a3a0b413eb237c93fc60c99.tar.gz
nextcloud-server-b8ed99723822d23c9a3a0b413eb237c93fc60c99.zip
Remove ISection in favor of IIconSection
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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(