diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-19 10:44:08 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-19 10:44:08 +0200 |
commit | 7e49a33d6467ab0cc5efdceffd4204cffa281bd1 (patch) | |
tree | 8522060c7b5ff7ae470090b689caa3bf4831be96 /apps | |
parent | 08f7d4c552bf2c1974828c332b9dc74ea9ba8dd1 (diff) | |
download | nextcloud-server-7e49a33d6467ab0cc5efdceffd4204cffa281bd1.tar.gz nextcloud-server-7e49a33d6467ab0cc5efdceffd4204cffa281bd1.zip |
getStorage belongs to files not to apps.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/contacts/ajax/uploadimport.php | 2 | ||||
-rw-r--r-- | apps/contacts/import.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/ajax/uploadimport.php b/apps/contacts/ajax/uploadimport.php index 99386516f50..f4a13e0a4bb 100644 --- a/apps/contacts/ajax/uploadimport.php +++ b/apps/contacts/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/apps/contacts/import.php b/apps/contacts/import.php index 7c1c98d9f5d..1a07781b9d0 100644 --- a/apps/contacts/import.php +++ b/apps/contacts/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']); |