Item/Tooltips

* restore icon to tooltips after iconDB-changes tripped over a long forgotten change
This commit is contained in:
Sarjuuk
2017-04-01 21:28:54 +02:00
parent 92394e415a
commit acad94770b
2 changed files with 3 additions and 3 deletions

View File

@@ -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']))

View File

@@ -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";