aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/7zip.inc
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2010-05-22 16:50:39 +0000
committerSam Reed <reedy@users.mediawiki.org>2010-05-22 16:50:39 +0000
commit659778619cc12d156d3547834c0f90f407584104 (patch)
tree8d2328159c63f03ff9235c27af2bb02d9e306ec8 /maintenance/7zip.inc
parent262cb09fe4011a3aa23867af6f315c86ceb95073 (diff)
downloadmediawikicore-659778619cc12d156d3547834c0f90f407584104.tar.gz
mediawikicore-659778619cc12d156d3547834c0f90f407584104.zip
Stylize maintenance folder..
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
Diffstat (limited to 'maintenance/7zip.inc')
-rw-r--r--maintenance/7zip.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc
index 617083bfe869..6acd43bf1d8b 100644
--- a/maintenance/7zip.inc
+++ b/maintenance/7zip.inc
@@ -15,21 +15,21 @@ class SevenZipStream {
}
function stream_open( $path, $mode, $options, &$opened_path ) {
- if( $mode[0] == 'r' ) {
+ if ( $mode[0] == 'r' ) {
$options = 'e -bd -so';
- } elseif( $mode[0] == 'w' ) {
+ } elseif ( $mode[0] == 'w' ) {
$options = 'a -bd -si';
} else {
return false;
}
$arg = wfEscapeShellArg( $this->stripPath( $path ) );
$command = "7za $options $arg";
- if( !wfIsWindows() ) {
+ if ( !wfIsWindows() ) {
// Suppress the stupid messages on stderr
$command .= ' 2>/dev/null';
}
$this->stream = popen( $command, $mode );
- return ($this->stream !== false);
+ return ( $this->stream !== false );
}
function url_stat( $path, $flags ) {
@@ -37,7 +37,7 @@ class SevenZipStream {
}
// This is all so lame; there should be a default class we can extend
-
+
function stream_close() {
return fclose( $this->stream );
}