Filters/Items

* fixed forgotten rename, breaking page with certain tabs
 * fixed typo, breaking stat weights
This commit is contained in:
Sarjuuk
2017-04-24 17:06:08 +02:00
parent 29c8c3d0af
commit d19a920c09
2 changed files with 4 additions and 4 deletions

View File

@@ -2540,7 +2540,7 @@ class ItemListFilter extends Filter
if (preg_match('/\W/i', $v)) if (preg_match('/\W/i', $v))
return false; return false;
return isset(Util::$itemFilter[$val]); return isset(Util::$itemFilter[$v]);
} }
} }

View File

@@ -380,7 +380,7 @@ class ItemsPage extends GenericPage
{ {
case 1: case 1:
$override['sl'] = $group; $override['sl'] = $group;
$tabData['note'] = '$$WH.sprintf(LANG.lvnote_viewmoreslot, \''.$cls.'\', \''.$this->filterObj->urlize($override).'\')'; $tabData['note'] = '$$WH.sprintf(LANG.lvnote_viewmoreslot, \''.$cls.'\', \''.$this->filterObj->getFilterString($override).'\')';
break; break;
case 2: case 2:
if ($group > 0) if ($group > 0)
@@ -391,11 +391,11 @@ class ItemsPage extends GenericPage
else else
$override['maxle'] = abs($group) - 1; $override['maxle'] = abs($group) - 1;
$tabData['note'] = '$$WH.sprintf(LANG.lvnote_viewmorelevel, \''.$cls.'\', \''.$this->filterObj->urlize($override).'\')'; $tabData['note'] = '$$WH.sprintf(LANG.lvnote_viewmorelevel, \''.$cls.'\', \''.$this->filterObj->getFilterString($override).'\')';
break; break;
case 3: case 3:
if ($_ = [null, 3, 4, 5, 6, 7, 9, 10, 11][$group]) if ($_ = [null, 3, 4, 5, 6, 7, 9, 10, 11][$group])
$tabData['note'] = '$$WH.sprintf(LANG.lvnote_viewmoresource, \''.$cls.'\', \''.$this->filterObj->urlize($override, ['cr' => 128, 'crs' => $_, 'crv' => 0]).'\')'; $tabData['note'] = '$$WH.sprintf(LANG.lvnote_viewmoresource, \''.$cls.'\', \''.$this->filterObj->getFilterString($override, ['cr' => 128, 'crs' => $_, 'crv' => 0]).'\')';
break; break;
} }