summaryrefslogtreecommitdiff
path: root/maintenance/7zip.inc
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/7zip.inc')
-rw-r--r--maintenance/7zip.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc
index 590cad23..751a1311 100644
--- a/maintenance/7zip.inc
+++ b/maintenance/7zip.inc
@@ -3,7 +3,7 @@
* 7z stream wrapper
*
* Copyright © 2005 Brion Vibber <brion@pobox.com>
- * 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' );