mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Pages/Caching (#380)
* move localized option sorting to postCache() to prevent real order display in cached versions
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user