From a729320f3c5ccfd1d126c4b77277a3ef5abc92e7 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Sat, 19 May 2012 10:44:08 +0200 Subject: [PATCH] getStorage belongs to files not to apps. --- ajax/uploadimport.php | 2 +- import.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax/uploadimport.php b/ajax/uploadimport.php index 99386516..f4a13e0a 100644 --- a/ajax/uploadimport.php +++ b/ajax/uploadimport.php @@ -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. diff --git a/import.php b/import.php index 7c1c98d9..1a07781b 100644 --- a/import.php +++ b/import.php @@ -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']);