update ui of admin and fix #53

This commit is contained in:
Simon Vieille
2021-02-03 15:21:08 +01:00
parent b06df8ad9f
commit c893391065
3 changed files with 376 additions and 353 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ class CategoryRepository
public function getOrderedCategories()
{
$currentLanguage = substr($this->l10nFactory->findLanguage(), 0, 2);
$type = $this->config->getAppValueArray('categories-order-type', 'default');
$type = $this->config->getAppValue('categories-order-type', 'default');
$order = $this->config->getAppValueArray('categories-order', '[]');
$categoriesLabels = $this->config->getAppValueArray('cache-categories', '[]');
@@ -76,7 +76,7 @@ class CategoryRepository
asort($categoriesLabels);
if ('custom' === $type || true) {
if ('custom' === $type) {
$ordered = [];
foreach ($order as $id) {