diff options
Diffstat (limited to 'lib/app.php')
-rw-r--r-- | lib/app.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/app.php b/lib/app.php index 410cb4c12fc..68e1bc6a6ca 100644 --- a/lib/app.php +++ b/lib/app.php @@ -737,16 +737,16 @@ class OC_App{ /** * @param string $appid - * @return OC_FilesystemView + * @return \OC\Files\View */ public static function getStorage($appid) { if(OC_App::isEnabled($appid)) {//sanity check if(OC_User::isLoggedIn()) { - $view = new OC_FilesystemView('/'.OC_User::getUser()); + $view = new \OC\Files\View('/'.OC_User::getUser()); if(!$view->file_exists($appid)) { $view->mkdir($appid); } - return new OC_FilesystemView('/'.OC_User::getUser().'/'.$appid); + return new \OC\Files\View('/'.OC_User::getUser().'/'.$appid); }else{ OC_Log::write('core', 'Can\'t get app storage, app, user not logged in', OC_Log::ERROR); return false; |