diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-10-28 22:51:49 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-10-28 23:05:00 +0100 |
commit | b8ed99723822d23c9a3a0b413eb237c93fc60c99 (patch) | |
tree | a3e2136a5faa0ac5bca63d3d2f6936272edbd0db /apps/settings/lib/Search | |
parent | ef382f541c42f719b8dd30a4e0e248ef1bc39c84 (diff) | |
download | nextcloud-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.php | 7 |
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( |