From 1256ebfa22a90f3242db02d33949f576640f762f Mon Sep 17 00:00:00 2001 From: "eapl.mx" Date: Thu, 12 Dec 2024 17:26:21 -0600 Subject: [PATCH] fix(refresh): uncomment ob_start and fix style in refresh.php --- views/refresh.php | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/views/refresh.php b/views/refresh.php index 7c4f247..41a10cc 100644 --- a/views/refresh.php +++ b/views/refresh.php @@ -1,38 +1,32 @@ -

Loading feeds followed by:

- document.getElementById("refreshInfo").innerHTML = "Updating feed from:"'; -foreach ($twtFollowingList as $following) { +foreach ($twtFollowingList as $following) { //ob_start(); - $float = $i/$total; - $percent = intval($float * 100)."%"; + $float = $i / $total; + $percent = intval($float * 100) . "%"; $feed = $following[1]; //$feed = preg_replace('(^https?://)', '', $feed); //$feed = $following[0].'@'. parse_url($following[1], PHP_URL_HOST); - $feed = $following[0].' ('.$following[1].')'; + $feed = "{$following[0]} ({$following[1]})"; // Javascript for updating the progress bar and information - echo ''; + echo ""; updateCachedFile($following[1]); ob_flush(); // Send output to browser immediately