1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Don't useoc:// wrapper. Fix #261

This commit is contained in:
Thomas Tanghus 2013-11-28 12:18:05 +01:00
parent 433650e02d
commit 6fc07aad83

View File

@ -116,8 +116,8 @@ class ImportController extends Controller {
$proxyStatus = \OC_FileProxy::$enabled;
\OC_FileProxy::$enabled = false;
//$content = \OC_Filesystem::file_get_contents($path . '/' . $filename);
$content = file_get_contents('oc://' . $path . '/' . $filename);
$content = \OC_Filesystem::file_get_contents($path . '/' . $filename);
//$content = file_get_contents('oc://' . $path . '/' . $filename);
if($view->file_put_contents('/imports/' . $filename, $content)) {
\OC_FileProxy::$enabled = $proxyStatus;
$count = substr_count($content, 'BEGIN:');