ItemDetailPage/Infobox

* properly line break arena requirements after 8bf7b3ee06
 * fix ancient typo in unused code
This commit is contained in:
Sarjuuk
2024-03-24 22:05:13 +01:00
parent 676a7ef24e
commit e2e0a0295b
2 changed files with 2 additions and 2 deletions

View File

@@ -591,7 +591,7 @@ class Lang
if (is_array($var))
{
foreach ($var as &$v)
$v == self::vspf($v, $args);
$v = self::vspf($v, $args);
return $var;
}

View File

@@ -267,7 +267,7 @@ class ItemPage extends genericPage
if ($_reqRating)
{
$text = str_replace('<br />', ' ', Lang::item('reqRating', $_reqRating[1], [$_reqRating[0]]));
$infobox[] = Lang::breakTextClean($text);
$infobox[] = Lang::breakTextClean($text, 30, LANG::FMT_MARKUP);
}
}