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: = preg_replace('(^https?://)', '', $url) ?>
- 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