AddonsLab
Well-known member
- Affected version
- 2.0.x
Hello,
There is a problem with saving custom currency format in Admin -> Appearance -> Languages -> Edit Language page. If the custom format value is set to
Suggested fix:
In file /src/XF/Admin/Controller/Language.php, on line 113 it says:
which should be replaced with
Thank you!
There is a problem with saving custom currency format in Admin -> Appearance -> Languages -> Edit Language page. If the custom format value is set to
{value} $
(or any other currency sign) the form fails with error:Currency format must contain at least "{value}"
Suggested fix:
In file /src/XF/Admin/Controller/Language.php, on line 113 it says:
Code:
if (!strpos($input['currency_format'], '{value}'))
{
$form->logError(\XF::phrase('currency_format_must_contain_at_least_value'), 'currency_format');
}
which should be replaced with
Code:
if (strpos($input['currency_format'], '{value}') === false)
{
$form->logError(\XF::phrase('currency_format_must_contain_at_least_value'), 'currency_format');
}
Thank you!
Last edited: