mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 08:34:09 +02:00
Only load protocol if not speified
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
064d01292a
commit
afe2b5753e
1 changed files with 5 additions and 2 deletions
|
|
@ -60,7 +60,10 @@ class WrapperHandler {
|
||||||
$class = static::class;
|
$class = static::class;
|
||||||
}
|
}
|
||||||
|
|
||||||
$protocol = self::getProtocol($class);
|
if ($protocol === null) {
|
||||||
|
$protocol = self::getProtocol($class);
|
||||||
|
}
|
||||||
|
|
||||||
$context = self::buildContext($protocol, $context, $source);
|
$context = self::buildContext($protocol, $context, $source);
|
||||||
try {
|
try {
|
||||||
stream_wrapper_register($protocol, $class);
|
stream_wrapper_register($protocol, $class);
|
||||||
|
|
@ -106,4 +109,4 @@ class WrapperHandler {
|
||||||
}
|
}
|
||||||
return $context;
|
return $context;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue