diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 12:54:31 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 12:54:31 +0200 |
commit | 8c7f8546716ac77cdeaa134caf9fae22232ce213 (patch) | |
tree | 80c98f5aaf0274e5c38c3d55af9400a720552745 /apps/files_encryption/lib/proxy.php | |
parent | f1830866a3f20e50c3d409d3cdd508a98fc56377 (diff) | |
download | nextcloud-server-8c7f8546716ac77cdeaa134caf9fae22232ce213.tar.gz nextcloud-server-8c7f8546716ac77cdeaa134caf9fae22232ce213.zip |
move all the files stuff into a files class
Diffstat (limited to 'apps/files_encryption/lib/proxy.php')
-rwxr-xr-x | apps/files_encryption/lib/proxy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index cbe88adb5e4..ba357f23502 100755 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -92,7 +92,7 @@ class OC_FileProxy_Encryption extends OC_FileProxy{ //first encrypt the target file so we don't end up with a half encrypted file OCP\Util::writeLog('files_encryption','Decrypting '.$path.' before writing',OCP\Util::DEBUG); $tmp=fopen('php://temp'); - OCP\Util::streamCopy($result,$tmp); + OCP\Files::streamCopy($result,$tmp); fclose($result); OC_Filesystem::file_put_contents($path,$tmp); fclose($tmp); @@ -104,7 +104,7 @@ class OC_FileProxy_Encryption extends OC_FileProxy{ public function postGetMimeType($path,$mime){ if(self::isEncrypted($path)){ - $mime=OCP\Util::getMimeType('crypt://'.$path,'w'); + $mime=OCP\Files::getMimeType('crypt://'.$path,'w'); } return $mime; } |