summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-02 00:20:45 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-02 00:20:45 +0200
commit93b63cf3755d3f1295c976c308b81c6340883abb (patch)
tree8e8a7413ea75723b7d21e18661a10842d1970bf1 /apps/files_encryption/lib
parente48f511606a1ef64aa39099055dd6ae437f45d03 (diff)
downloadnextcloud-server-93b63cf3755d3f1295c976c308b81c6340883abb.tar.gz
nextcloud-server-93b63cf3755d3f1295c976c308b81c6340883abb.zip
ported the rest of the OC_Helper calls
Diffstat (limited to 'apps/files_encryption/lib')
-rwxr-xr-xapps/files_encryption/lib/proxy.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 11a6a84e667..cbe88adb5e4 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');
- OC_Helper::streamCopy($result,$tmp);
+ OCP\Util::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=OC_Helper::getMimeType('crypt://'.$path,'w');
+ $mime=OCP\Util::getMimeType('crypt://'.$path,'w');
}
return $mime;
}