Quests/Fixup

* fix inconsistency in linking to categoy: uncategorized (-2)
 * fixes #485
This commit is contained in:
Sarjuuk 2026-01-28 19:50:55 +01:00
parent cadb4aa0d3
commit c58b073a73
7 changed files with 13 additions and 0 deletions

View file

@ -52,7 +52,14 @@ class QuestsBaseResponse extends TemplateResponse implements ICache
parent::__construct($rawParam);
if ($this->category)
{
// basically: everywhere except for page structure quests require cat AND cat2 to be set
// causing links to be generated for /?quests=-2.0, which only exist as /?quests=-2
if ($this->category[0] == -2 && isset($this->category[1]))
$this->forward('?' . $this->pageName . '=-2');
$this->subCat = '='.implode('.', $this->category);
}
$this->filter = new QuestListFilter($this->_get['filter'] ?? '', ['parentCats' => $this->category]);
if ($this->filter->shouldReload)

View file

@ -1531,6 +1531,7 @@ var g_quest_sorts = {
"-374": 'Nobelgarten',
"-375": 'Pilgerfreuden',
"-376": 'Liebe liegt in der Luft',
0: 'Nicht kategorisiert',
1: 'Dun Morogh',
3: 'Ödland',
4: 'Verwüstete Lande',

View file

@ -1578,6 +1578,7 @@ var g_quest_sorts = {
"-374": 'Noblegarden',
"-375": 'Pilgrim\'s Bounty',
"-376": 'Love is in the Air',
0: 'Uncategorized',
1: 'Dun Morogh',
3: 'Badlands',
4: 'Blasted Lands',

View file

@ -1531,6 +1531,7 @@ var g_quest_sorts = {
"-374": 'Jardín Noble',
"-375": 'Generosidad del Peregrino',
"-376": 'Amor en el aire',
0: 'Sin categoría',
1: 'Dun Morogh',
3: 'Tierras Inhóspitas',
4: 'Las Tierras Devastadas',

View file

@ -1531,6 +1531,7 @@ var g_quest_sorts = {
"-374": 'Jardin des nobles',
"-375": 'Bienfaits du pèlerin',
"-376": 'De l\'amour dans l\'air',
0: 'Non classés',
1: 'Dun Morogh',
3: 'Terres ingrates',
4: 'Terres foudroyées',

View file

@ -1531,6 +1531,7 @@ var g_quest_sorts = {
"-374": 'Сад чудес',
"-375": 'Пиршество странников',
"-376": 'Любовная лихорадка',
0: 'Разное',
1: 'Дун Морог',
3: 'Бесплодные земли',
4: 'Выжженные земли',

View file

@ -1577,6 +1577,7 @@ var g_quest_sorts = {
"-374": '复活节',
"-375": '感恩节',
"-376": '情人节',
0: '未分类',
1: '丹莫罗',
3: '荒芜之地',
4: '诅咒之地',