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:
parent
433650e02d
commit
6fc07aad83
@ -116,8 +116,8 @@ class ImportController extends Controller {
|
|||||||
|
|
||||||
$proxyStatus = \OC_FileProxy::$enabled;
|
$proxyStatus = \OC_FileProxy::$enabled;
|
||||||
\OC_FileProxy::$enabled = false;
|
\OC_FileProxy::$enabled = false;
|
||||||
//$content = \OC_Filesystem::file_get_contents($path . '/' . $filename);
|
$content = \OC_Filesystem::file_get_contents($path . '/' . $filename);
|
||||||
$content = file_get_contents('oc://' . $path . '/' . $filename);
|
//$content = file_get_contents('oc://' . $path . '/' . $filename);
|
||||||
if($view->file_put_contents('/imports/' . $filename, $content)) {
|
if($view->file_put_contents('/imports/' . $filename, $content)) {
|
||||||
\OC_FileProxy::$enabled = $proxyStatus;
|
\OC_FileProxy::$enabled = $proxyStatus;
|
||||||
$count = substr_count($content, 'BEGIN:');
|
$count = substr_count($content, 'BEGIN:');
|
||||||
|
Loading…
Reference in New Issue
Block a user