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