summaryrefslogtreecommitdiffstats
path: root/lib/archive
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-28 15:34:15 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-28 15:34:15 +0100
commitc9c919da5738f963247307ca3878e06beff87ade (patch)
tree6b4a0c381fef34589559634555a653a57821002d /lib/archive
parentbca5ce724e4fcecfe89da8839878c4da6f102e35 (diff)
downloadnextcloud-server-c9c919da5738f963247307ca3878e06beff87ade.tar.gz
nextcloud-server-c9c919da5738f963247307ca3878e06beff87ade.zip
Move streamwrappers to seperate files and put them in a namespace
Diffstat (limited to 'lib/archive')
-rw-r--r--lib/archive/tar.php2
-rw-r--r--lib/archive/zip.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/archive/tar.php b/lib/archive/tar.php
index 0fa633c6038..117d88e5f42 100644
--- a/lib/archive/tar.php
+++ b/lib/archive/tar.php
@@ -308,7 +308,7 @@ class OC_Archive_TAR extends OC_Archive{
if($mode=='r' or $mode=='rb') {
return fopen($tmpFile, $mode);
}else{
- OC_CloseStreamWrapper::$callBacks[$tmpFile]=array($this, 'writeBack');
+ \OC\Files\Stream\Close::registerCallback($tmpFile, array($this, 'writeBack'));
self::$tempFiles[$tmpFile]=$path;
return fopen('close://'.$tmpFile, $mode);
}
diff --git a/lib/archive/zip.php b/lib/archive/zip.php
index 1c967baa08f..8e31795ded1 100644
--- a/lib/archive/zip.php
+++ b/lib/archive/zip.php
@@ -171,7 +171,7 @@ class OC_Archive_ZIP extends OC_Archive{
$ext='';
}
$tmpFile=OCP\Files::tmpFile($ext);
- OC_CloseStreamWrapper::$callBacks[$tmpFile]=array($this, 'writeBack');
+ \OC\Files\Stream\Close::registerCallback($tmpFile, array($this, 'writeBack'));
if($this->fileExists($path)) {
$this->extractFile($path, $tmpFile);
}