forked from deblan/side_menu
Merge pull request 'release v3.10.0' (#268) from develop into master
Reviewed-on: deblan/side_menu#268
This commit is contained in:
commit
5f307cd046
|
@ -1,5 +1,11 @@
|
|||
## [Unreleased]
|
||||
|
||||
## 3.10.0
|
||||
### Added
|
||||
* add compatibility with NC28
|
||||
### Fixed
|
||||
* fix NC28 error: remove deprecated method `OC_App::getNavigation()`
|
||||
|
||||
## 3.9.1
|
||||
### Fixed
|
||||
* fix fixed menu on dashboard (#262)
|
||||
|
|
|
@ -32,7 +32,7 @@ Notice
|
|||
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
|
||||
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
|
||||
]]></description>
|
||||
<version>3.9.1</version>
|
||||
<version>3.10.0</version>
|
||||
<licence>agpl</licence>
|
||||
<author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
|
||||
<namespace>SideMenu</namespace>
|
||||
|
@ -54,7 +54,7 @@ In case of downtime, you can download **Custom Menu** from [here](https://kim.de
|
|||
<screenshot>https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_big_menu.png</screenshot>
|
||||
<screenshot>https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_default_menu.png</screenshot>
|
||||
<dependencies>
|
||||
<nextcloud min-version="25" max-version="27"/>
|
||||
<nextcloud min-version="25" max-version="28"/>
|
||||
<php min-version="7.4"/>
|
||||
</dependencies>
|
||||
<settings>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace OCA\SideMenu\Service;
|
||||
|
||||
use OC\User\User;
|
||||
use OCP\INavigationManager;
|
||||
use OCP\L10N\IFactory;
|
||||
|
||||
/**
|
||||
|
@ -34,6 +35,7 @@ class AppRepository
|
|||
|
||||
public function __construct(
|
||||
\OC_App $ocApp,
|
||||
protected INavigationManager $navigationManager,
|
||||
IFactory $l10nFactory,
|
||||
ConfigProxy $config,
|
||||
CategoryRepository $categoryRepository
|
||||
|
@ -51,7 +53,7 @@ class AppRepository
|
|||
*/
|
||||
public function getVisibleApps()
|
||||
{
|
||||
$navigation = $this->ocApp->getNavigation();
|
||||
$navigation = $this->navigationManager->getAll();
|
||||
$appCategoriesCustom = $this->config->getAppValueArray('apps-categories-custom', '[]');
|
||||
$categories = $this->categoryRepository->getOrderedCategories();
|
||||
$apps = $this->ocApp->listAllApps();
|
||||
|
|
Loading…
Reference in a new issue