diff options
| author | 2014-10-20 19:35:22 +0200 | |
|---|---|---|
| committer | 2014-10-20 19:35:22 +0200 | |
| commit | 8a7bab3a55442f85553ab1d897084e89c10f7e05 (patch) | |
| tree | 3d98b3f07a3bab84b3c39116c9d5e4ec81abdba5 /lib/lib_rss.php | |
| parent | 1a22a87fb1b1fcb61d201de399c33c2185dc1f6e (diff) | |
Refactoring of indexController
Global view has been moved to a different action (all is not working)
See https://github.com/marienfressinaud/FreshRSS/issues/634
and https://github.com/marienfressinaud/FreshRSS/issues/655
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 9abdf18ce..80eb206d2 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -60,6 +60,10 @@ function formatNumber($n, $precision = 0) { return str_replace(' ', ' ', //Espace insécable //TODO: remplacer par une espace _fine_ insécable number_format($n, $precision, '.', ' ')); //number_format does not seem to be Unicode-compatible } +function format_number($n, $precision = 0) { + // TODO: coding style, prefer THIS function. Remove formatNumber. + return formatNumber($n, $precision); +} function formatBytes($bytes, $precision = 2, $system = 'IEC') { if ($system === 'IEC') { |
