From e493acca0dd80a1d87cfd6001cae854d8af8dd50 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 10 Jun 2022 14:40:30 +0200 Subject: [PATCH] Item/XML * fix output for currency, quest and key subclasses --- pages/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/item.php b/pages/item.php index 379d178d..ac53190b 100644 --- a/pages/item.php +++ b/pages/item.php @@ -1057,7 +1057,7 @@ class ItemPage extends genericPage $xml->addChild('class')->addCData(is_array($x) ? $x[0] : $x)->addAttribute('id', $this->subject->getField('class')); // subclass $x = $this->subject->getField('class') == 2 ? Lang::spell('weaponSubClass') : Lang::item('cat', $this->subject->getField('class'), 1); - $xml->addChild('subclass')->addCData(is_array($x) ? (is_array($x[$this->subject->getField('subClass')]) ? $x[$this->subject->getField('subClass')][0] : $x[$this->subject->getField('subClass')]) : null)->addAttribute('id', $this->subject->getField('subClass')); + $xml->addChild('subclass')->addCData(is_array($x) ? (is_array($x[$this->subject->getField('subClass')]) ? $x[$this->subject->getField('subClass')][0] : $x[$this->subject->getField('subClass')]) : Lang::item('cat', $this->subject->getField('class')))->addAttribute('id', $this->subject->getField('subClass')); // icon + displayId $xml->addChild('icon', $this->subject->getField('iconString', true, true))->addAttribute('displayId', $this->subject->getField('displayId')); // inventorySlot