mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
fixup! Fix new loader
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
afe2b5753e
commit
8a1095e46c
1 changed files with 2 additions and 4 deletions
|
|
@ -55,10 +55,8 @@ class HashWrapper extends Wrapper {
|
||||||
*/
|
*/
|
||||||
public static function wrap($source, $hash, $callback) {
|
public static function wrap($source, $hash, $callback) {
|
||||||
$context = stream_context_create(array(
|
$context = stream_context_create(array(
|
||||||
'hash' => array(
|
'hash' => $hash,
|
||||||
'hash' => $hash,
|
'callback' => $callback,
|
||||||
'callback' => $callback,
|
|
||||||
)
|
|
||||||
));
|
));
|
||||||
return self::wrapSource($source, $context);
|
return self::wrapSource($source, $context);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue