X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2F7zip.inc;h=751a131168cc82d0e0acc53ec5334ec139ef1acb;hb=7d8766e80e670e9e408a25694ed5d24975b63864;hp=590cad238d273296ad196ddd0bcb67f59ceb9478;hpb=5da902e8464b0f8e38e996b482e5c20d3c8b3439;p=lhc%2Fweb%2Fwiklou.git 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' );