X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2F7zip.inc;h=751a131168cc82d0e0acc53ec5334ec139ef1acb;hb=1b8eac21abd41d0d9ddae8a4358e2aa933b0d959;hp=6bb06668c2bc5cc2febf8ab7bc4b18dca7239aff;hpb=9f5d06527c649911ba4dcbe1c42df728d76faabe;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc index 6bb06668c2..751a131168 100644 --- a/maintenance/7zip.inc +++ b/maintenance/7zip.inc @@ -3,7 +3,7 @@ * 7z stream wrapper * * Copyright © 2005 Brion Vibber - * http://www.mediawiki.org/ + * https://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,10 +32,11 @@ * @ingroup Maintenance */ class SevenZipStream { - var $stream; + protected $stream; private function stripPath( $path ) { $prefix = 'mediawiki.compress.7z://'; + return substr( $path, strlen( $prefix ) ); } @@ -91,4 +92,5 @@ class SevenZipStream { return fseek( $this->stream, $offset, $whence ); } } + stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' );