mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
fixes #707, hide decimal for "158.0 pages seen"
This commit is contained in:
@@ -3089,7 +3089,13 @@ function number_format_human_readable($numbers)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return number_format($numbers, 1).$readable[$index];
|
$decimals = 1;
|
||||||
|
if ('' == $readable[$index])
|
||||||
|
{
|
||||||
|
$decimals = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return number_format($numbers, $decimals).$readable[$index];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user