Pages/Caching (#380)

* move localized option sorting to postCache() to prevent real order display in cached versions
This commit is contained in:
Sarjuuk
2023-02-20 22:08:22 +01:00
parent beb32da3b4
commit b06d1a5c2c
9 changed files with 31 additions and 0 deletions

View File

@@ -116,7 +116,10 @@ class AchievementsPage extends GenericPage
}
$this->lvTabs[] = ['achievement', $tabData];
}
protected function postCache()
{
// sort for dropdown-menus in filter
Lang::sort('game', 'si');
}

View File

@@ -114,7 +114,11 @@ class ArenaTeamsPage extends GenericPage
}
$this->lvTabs[] = ['profile', $tabData, 'membersCol'];
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('game', 'cl');
Lang::sort('game', 'ra');
}

View File

@@ -114,7 +114,11 @@ class GuildsPage extends GenericPage
}
$this->lvTabs[] = ['profile', $tabData, 'membersCol'];
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('game', 'cl');
Lang::sort('game', 'ra');
}

View File

@@ -431,7 +431,10 @@ class ItemsPage extends GenericPage
$this->forceTabs = false;
$this->lvTabs[] = ['item', ['data' => []]];
}
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('game', 'ra');
Lang::sort('game', 'cl');

View File

@@ -72,7 +72,10 @@ class ItemsetsPage extends GenericPage
$tabData['_errors'] = 1;
$this->lvTabs[] = ['itemset', $tabData];
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('itemset', 'notes', SORT_NATURAL);
Lang::sort('game', 'si');

View File

@@ -91,7 +91,10 @@ class NpcsPage extends GenericPage
$tabData['_errors'] = 1;
$this->lvTabs[] = ['creature', $tabData];
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('game', 'fa');
}

View File

@@ -181,7 +181,11 @@ class ProfilesPage extends GenericPage
$this->lvTabs[] = ['profile', $tabData];
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('game', 'cl');
Lang::sort('game', 'ra');
}

View File

@@ -64,7 +64,11 @@ class SoundsPage extends GenericPage
$tabData['_errors'] = 1;
}
$this->lvTabs[] = ['sound', $tabData];
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('sound', 'cat');
}

View File

@@ -464,7 +464,10 @@ class SpellsPage extends GenericPage
$tabData['hiddenCols'] = array_unique($hiddenCols);
$this->lvTabs[] = ['spell', $tabData];
}
protected function postCache()
{
// sort for dropdown-menus
Lang::sort('game', 'ra');
Lang::sort('game', 'cl');