mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
fix: Remove static property use in SeekableHttpStream
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
1d21a93e56
commit
504a02b04e
1 changed files with 1 additions and 4 deletions
|
|
@ -16,19 +16,16 @@ use Icewind\Streams\Wrapper;
|
|||
class SeekableHttpStream implements File {
|
||||
private const PROTOCOL = 'httpseek';
|
||||
|
||||
private static bool $registered = false;
|
||||
|
||||
/**
|
||||
* Registers the stream wrapper using the `httpseek://` url scheme
|
||||
* $return void
|
||||
*/
|
||||
private static function registerIfNeeded() {
|
||||
if (!self::$registered) {
|
||||
if (!in_array(self::PROTOCOL, stream_get_wrappers())) {
|
||||
stream_wrapper_register(
|
||||
self::PROTOCOL,
|
||||
self::class
|
||||
);
|
||||
self::$registered = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue