mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Cleanup
* moving commonly used strings to defines * moving commonly reused/similar page generation functions to the parent * generally using consistent return types, more type hints and less strings * prevent browser context menu when right clicking on UI elements with their own context menus * fixed menu path for icons
This commit is contained in:
@@ -852,8 +852,9 @@ class ItemList extends BaseType
|
||||
if ($dur = $this->curTpl['durability'])
|
||||
$x .= sprintf(Lang::item('durability'), $dur, $dur).'<br />';
|
||||
|
||||
$jsg = [];
|
||||
// required classes
|
||||
if ($classes = Lang::getClassString($this->curTpl['requiredClass'], $jsg, $__))
|
||||
if ($classes = Lang::getClassString($this->curTpl['requiredClass'], $jsg))
|
||||
{
|
||||
foreach ($jsg as $js)
|
||||
if (empty($this->jsGlobals[TYPE_CLASS][$js]))
|
||||
@@ -863,7 +864,7 @@ class ItemList extends BaseType
|
||||
}
|
||||
|
||||
// required races
|
||||
if ($races = Lang::getRaceString($this->curTpl['requiredRace'], $jsg, $__))
|
||||
if ($races = Lang::getRaceString($this->curTpl['requiredRace'], $jsg))
|
||||
{
|
||||
foreach ($jsg as $js)
|
||||
if (empty($this->jsGlobals[TYPE_RACE][$js]))
|
||||
|
||||
Reference in New Issue
Block a user