X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2F7zip.inc;h=9c1093becb5a082f9a92610eae3bab87cbee1eb4;hb=74d04edec385aa86ee01943b9a27475d79f74e78;hp=590cad238d273296ad196ddd0bcb67f59ceb9478;hpb=b42e252fd07b596a66e5e69347e2fef6ff036524;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc index 590cad238d..9c1093becb 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' ); + +stream_wrapper_register( 'mediawiki.compress.7z', SevenZipStream::class );