mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
getStorage belongs to files not to apps.
This commit is contained in:
parent
0316f8ab3a
commit
a729320f3c
@ -32,7 +32,7 @@ function debug($msg) {
|
||||
OCP\Util::writeLog('contacts','ajax/uploadimport.php: '.$msg, OCP\Util::DEBUG);
|
||||
}
|
||||
|
||||
$view = OCP\App::getStorage('contacts');
|
||||
$view = OCP\Files::getStorage('contacts');
|
||||
$tmpfile = md5(rand());
|
||||
|
||||
// If it is a Drag'n'Drop transfer it's handled here.
|
||||
|
@ -23,7 +23,7 @@ function writeProgress($pct) {
|
||||
writeProgress('10');
|
||||
$view = $file = null;
|
||||
if(isset($_POST['fstype']) && $_POST['fstype'] == 'OC_FilesystemView') {
|
||||
$view = OCP\App::getStorage('contacts');
|
||||
$view = OCP\Files::getStorage('contacts');
|
||||
$file = $view->file_get_contents('/' . $_POST['file']);
|
||||
} else {
|
||||
$file = OC_Filesystem::file_get_contents($_POST['path'] . '/' . $_POST['file']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user