rename 'top-menu-apps-order' with 'apps-order'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user