Item/Tooltips (#368)

* fixed broken link to required event
This commit is contained in:
Sarjuuk
2023-03-19 20:48:49 +01:00
parent 2210c0c4c5
commit 6f87870e09

View File

@@ -607,7 +607,7 @@ class ItemList extends BaseType
// required holiday // required holiday
if ($eId = $this->curTpl['eventId']) if ($eId = $this->curTpl['eventId'])
if ($hName = DB::Aowow()->selectRow('SELECT h.* FROM ?_holidays h JOIN ?_events e ON e.holidayId = h.id WHERE e.id = ?d', $eId)) if ($hName = DB::Aowow()->selectRow('SELECT h.* FROM ?_holidays h JOIN ?_events e ON e.holidayId = h.id WHERE e.id = ?d', $eId))
$x .= '<br />'.sprintf(Lang::game('requires'), '<a href="'.$eId.'" class="q1">'.Util::localizedString($hName, 'name').'</a>'); $x .= '<br />'.sprintf(Lang::game('requires'), '<a href="?event='.$eId.'" class="q1">'.Util::localizedString($hName, 'name').'</a>');
// item begins a quest // item begins a quest
if ($this->curTpl['startQuest']) if ($this->curTpl['startQuest'])