Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-03-24 23:27:42 +0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-03-24 23:28:05 +0400
commitd139e3c3cd19103cdb798f2fc80a1a461ac08615 (patch)
tree47747416789748e2725817e08edd6a9b2534d087
parentc23090b43c6729cde99b073fac6653185b96d4d0 (diff)
Move Google Docs storage backend to files_remote app
-rw-r--r--apps/files_remote/appinfo/app.php1
-rw-r--r--apps/files_remote/lib/google.php (renamed from lib/filestorage/google.php)2
-rw-r--r--apps/files_remote/tests/config.php7
3 files changed, 8 insertions, 2 deletions
diff --git a/apps/files_remote/appinfo/app.php b/apps/files_remote/appinfo/app.php
index 25473d87fee..02c1c3ae313 100644
--- a/apps/files_remote/appinfo/app.php
+++ b/apps/files_remote/appinfo/app.php
@@ -8,3 +8,4 @@
OC::$CLASSPATH['OC_Filestorage_FTP']='apps/files_remote/lib/ftp.php';
OC::$CLASSPATH['OC_Filestorage_DAV']='apps/files_remote/lib/webdav.php';
+OC::$CLASSPATH['OC_Filestorage_Google']='apps/files_remote/lib/google.php';
diff --git a/lib/filestorage/google.php b/apps/files_remote/lib/google.php
index 5de47650f63..0d6db1987f8 100644
--- a/lib/filestorage/google.php
+++ b/apps/files_remote/lib/google.php
@@ -24,14 +24,12 @@ require_once 'common.inc.php';
class OC_Filestorage_Google extends OC_Filestorage_Common {
- private $datadir;
private $consumer;
private $oauth_token;
private $sig_method;
private $entries;
public function __construct($arguments) {
- $this->datadir = $arguments['datadir'];
$consumer_key = isset($arguments['consumer_key']) ? $arguments['consumer_key'] : 'anonymous';
$consumer_secret = isset($arguments['consumer_secret']) ? $arguments['consumer_secret'] : 'anonymous';
$this->consumer = new OAuthConsumer($consumer_key, $consumer_secret);
diff --git a/apps/files_remote/tests/config.php b/apps/files_remote/tests/config.php
index e2eea72f244..9b40d2b98cf 100644
--- a/apps/files_remote/tests/config.php
+++ b/apps/files_remote/tests/config.php
@@ -12,4 +12,11 @@ return array(
'password'=>'test',
'root'=>'/owncloud/files/webdav.php',
),
+ 'google'=>array(
+ 'consumer_key'=>'anonymous',
+ 'consumer_secret'=>'anonymous',
+ 'token'=>'test',
+ 'token_secret'=>'test',
+ 'root'=>'/google',
+ )
);