X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2F7zip.inc;h=751a131168cc82d0e0acc53ec5334ec139ef1acb;hp=590cad238d273296ad196ddd0bcb67f59ceb9478;hb=ffba23d177d5eee876bdc59cdf1b945281b18041;hpb=4f741418fcb0a85f1ccfa3a72e5faa34259b8e53 diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc index 590cad238d..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 @@ -36,6 +36,7 @@ class SevenZipStream { 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' );