rename 'top-menu-apps-order' with 'apps-order'

This commit is contained in:
Simon Vieille
2022-10-27 21:51:58 +02:00
parent d42593d203
commit 07c7221ca2
6 changed files with 24 additions and 24 deletions
+2 -6
View File
@@ -98,10 +98,6 @@ class AppRepository
}
}
usort($visibleApps, function ($a, $b) {
return ($a['name'] < $b['name']) ? -1 : 1;
});
return $visibleApps;
}
@@ -114,10 +110,10 @@ class AppRepository
);
}
public function getTopMenuOrderedApps()
public function getOrderedApps()
{
$apps = $this->getVisibleApps();
$orders = $this->config->getAppValueArray('top-menu-apps-order', '[]');
$orders = $this->config->getAppValueArray('apps-order', '[]');
usort($apps, function ($a, $b) use ($orders) {
$ak = array_keys($orders, $a['id'])[0] ?? null;