aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-12-26 16:33:47 +0100
committerGravatar GitHub <noreply@github.com> 2016-12-26 16:33:47 +0100
commit5f637bd816b7323885bfe1751a1724ee59a822f6 (patch)
tree67028e45792c575c25c92616633f64cc7a4a13eb /lib/lib_rss.php
parentc3d2496bb3ce665faf4a0f24a4aa2ab300ab56d3 (diff)
parent109f63be2620cf108efdfebd43f491e2720c824a (diff)
Merge pull request #1399 from FreshRSS/dev1.6.2
Release 1.6.2
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 143b55bee..560e5b256 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -127,6 +127,8 @@ function format_bytes($bytes, $precision = 2, $system = 'IEC') {
} elseif ($system === 'SI') {
$base = 1000;
$units = array('B', 'KB', 'MB', 'GB', 'TB');
+ } else {
+ return format_number($bytes, $precision);
}
$bytes = max(intval($bytes), 0);
$pow = $bytes === 0 ? 0 : floor(log($bytes) / log($base));
@@ -396,6 +398,7 @@ function check_install_php() {
'pdo' => $pdo_mysql || $pdo_sqlite,
'pcre' => extension_loaded('pcre'),
'ctype' => extension_loaded('ctype'),
+ 'fileinfo' => extension_loaded('fileinfo'),
'dom' => class_exists('DOMDocument'),
'json' => extension_loaded('json'),
'zip' => extension_loaded('zip'),