X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2F7zip.inc;h=833e76c76a06cdb3fa351948bb7f6fcee97d6505;hb=f018c8135071c3f8bd9cf891acc0588222191372;hp=6acd43bf1d8b7483382a90f1d94745a0a04a4d38;hpb=659778619cc12d156d3547834c0f90f407584104;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc index 6acd43bf1d..833e76c76a 100644 --- a/maintenance/7zip.inc +++ b/maintenance/7zip.inc @@ -1,4 +1,11 @@ open() @@ -28,7 +35,7 @@ class SevenZipStream { // Suppress the stupid messages on stderr $command .= ' 2>/dev/null'; } - $this->stream = popen( $command, $mode ); + $this->stream = popen( $command, $mode[0] ); // popen() doesn't like two-letter modes return ( $this->stream !== false ); } @@ -66,4 +73,4 @@ class SevenZipStream { return fseek( $this->stream, $offset, $whence ); } } -stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' ); \ No newline at end of file +stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' );