forked from Cavemanon/cavepaintings
use Permissions for Favourites / Artist / Relationships, and also check image lock when sending ImageInfoSet instead of getting each receiver to check it
This commit is contained in:
@@ -162,7 +162,9 @@ function stream_file(string $file, int $start, int $end): void
|
||||
$buffer = $end - $p + 1;
|
||||
}
|
||||
echo fread($fp, $buffer);
|
||||
if(!defined("UNITTEST")) @ob_flush();
|
||||
if (!defined("UNITTEST")) {
|
||||
@ob_flush();
|
||||
}
|
||||
flush();
|
||||
|
||||
// After flush, we can tell if the client browser has disconnected.
|
||||
|
Reference in New Issue
Block a user