summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2013-11-27 00:39:35 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2013-11-27 00:39:35 +0100
commit80e97297edd90144da2bafba9158bd9295bdda6e (patch)
tree021f4a32e65d63abb105e561c421775ca02360a5 /inc
parent7d1e323e214bc52984e7df38732878be392adc5f (diff)
downloadrpg-80e97297edd90144da2bafba9158bd9295bdda6e.tar.gz
rpg-80e97297edd90144da2bafba9158bd9295bdda6e.tar.bz2
read changelog with chunks of chunksize size in getRevisions()
Diffstat (limited to 'inc')
-rw-r--r--inc/changelog.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/changelog.php b/inc/changelog.php
index 26480ad23..33cdaf533 100644
--- a/inc/changelog.php
+++ b/inc/changelog.php
@@ -517,7 +517,7 @@ abstract class ChangeLog {
$read_size = max($tail - $finger, 0); // found chunk size
$got = 0;
while($got < $read_size && !feof($fp)) {
- $tmp = @fread($fp, max($read_size - $got, 0)); //todo why not use chunk_size?
+ $tmp = @fread($fp, max(min($this->chunk_size, $read_size - $got), 0));
if($tmp === false) {
break;
} //error state