diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/appinfo/install.php | 4 | ||||
-rw-r--r-- | apps/files/appinfo/remote.php (renamed from apps/files/webdav.php) | 3 | ||||
-rw-r--r-- | apps/files/appinfo/update.php | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/apps/files/appinfo/install.php b/apps/files/appinfo/install.php new file mode 100644 index 00000000000..d00a1a321eb --- /dev/null +++ b/apps/files/appinfo/install.php @@ -0,0 +1,4 @@ +<?php +if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){ + file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPROOT . '/apps/files/appinfo/webdav.php')); +}
\ No newline at end of file diff --git a/apps/files/webdav.php b/apps/files/appinfo/remote.php index 940bbfef52e..232a61ed944 100644 --- a/apps/files/webdav.php +++ b/apps/files/appinfo/remote.php @@ -25,7 +25,6 @@ // Do not load FS ... $RUNTIME_NOSETUPFS = true; -require_once('../inc.php'); // only need filesystem apps $RUNTIME_APPTYPES=array('filesystem','authentication'); @@ -41,7 +40,7 @@ $publicDir = new OC_Connector_Sabre_Directory(''); // Fire up server $server = new Sabre_DAV_Server($publicDir); -$server->setBaseUri(OC::$APPSWEBROOT.'/apps/files/webdav.php'); +$server->setBaseUri(OC::$WEBROOT.'/remote/webdav.php'); // Load plugins $server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud')); diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php new file mode 100644 index 00000000000..d00a1a321eb --- /dev/null +++ b/apps/files/appinfo/update.php @@ -0,0 +1,4 @@ +<?php +if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){ + file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPROOT . '/apps/files/appinfo/webdav.php')); +}
\ No newline at end of file |