update ui of admin and fix #53

This commit is contained in:
Simon Vieille 2021-02-03 15:21:08 +01:00
commit c893391065
Signed by untrusted user: deblan
GPG key ID: 03383D15A1D31745
3 changed files with 397 additions and 374 deletions

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) {