Skip to content

Commit 01faba2

Browse files
count on app/Config/Services
1 parent ac7948a commit 01faba2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Helpers/number_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function number_to_currency(float $num, string $currency, string $locale = null,
214214
function format_number(float $num, int $precision = 1, string $locale = null, array $options = []): string
215215
{
216216
// Locale is either passed in here, negotiated with client, or grabbed from our config file.
217-
$locale = $locale ?? \CodeIgniter\Config\Services::request()->getLocale();
217+
$locale = $locale ?? \Config\Services::request()->getLocale();
218218

219219
// Type can be any of the NumberFormatter options, but provide a default.
220220
$type = (int) ($options['type'] ?? NumberFormatter::DECIMAL);

0 commit comments

Comments
 (0)