diff --git a/includes/types/item.class.php b/includes/types/item.class.php index 4db2efdb..ddc95548 100644 --- a/includes/types/item.class.php +++ b/includes/types/item.class.php @@ -430,9 +430,9 @@ class ItemList extends BaseType interactive (set to place javascript/anchors to manipulate level and ratings or link to filters (static tooltips vs popup tooltip)) subOf (tabled layout doesn't work if used as sub-tooltip in other item or spell tooltips; use line-break instead) */ - public function getField($field, $localized = false, $enhance = []) + public function getField($field, $localized = false, $silent = false, $enhance = []) { - $res = parent::getField($field, $localized); + $res = parent::getField($field, $localized, $silent); if ($field == 'name' && !empty($enhance['r'])) if ($this->getRandEnchantForItem($enhance['r'])) diff --git a/pages/item.php b/pages/item.php index 4ee0c4c1..9ad251af 100644 --- a/pages/item.php +++ b/pages/item.php @@ -1008,7 +1008,7 @@ class ItemPage extends genericPage return '$WowheadPower.registerItem(\''.$itemString.'\', '.User::$localeId.', {})'; $x = '$WowheadPower.registerItem(\''.$itemString.'\', '.User::$localeId.", {\n"; - $x .= "\tname_".User::$localeString.": '".Util::jsEscape($this->subject->getField('name', true, $this->enhancedTT))."',\n"; + $x .= "\tname_".User::$localeString.": '".Util::jsEscape($this->subject->getField('name', true, false, $this->enhancedTT))."',\n"; $x .= "\tquality: ".$this->subject->getField('quality').",\n"; $x .= "\ticon: '".rawurlencode($this->subject->getField('iconString', true, true))."',\n"; $x .= "\ttooltip_".User::$localeString.": '".Util::jsEscape($this->subject->renderTooltip(false, 0, $this->enhancedTT))."'\n";