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:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-05 20:29:02 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-05 20:29:26 +0400
commit101406eba7b8c3aed56f80519ef81d76e681d209 (patch)
treef96974b98dc4cae35f3edf0e248280bf1797a5c3 /apps/calendar
parent2facf509cc172ab822f573f3b582caef59995dc1 (diff)
fix writing in remote folder
Diffstat (limited to 'apps/calendar')
-rwxr-xr-xapps/calendar/appinfo/app.php3
-rw-r--r--apps/calendar/appinfo/install.php4
-rwxr-xr-xapps/calendar/appinfo/update.php3
3 files changed, 3 insertions, 7 deletions
diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php
index b02fc602c6b..055066de0df 100755
--- a/apps/calendar/appinfo/app.php
+++ b/apps/calendar/appinfo/app.php
@@ -23,3 +23,6 @@ OCP\App::addNavigationEntry( array(
'name' => $l->t('Calendar')));
OCP\App::registerPersonal('calendar', 'settings');
OC_Search::registerProvider('OC_Search_Provider_Calendar');
+if(!file_exists(OC::$SERVERROOT.'/remote/caldav.php')){
+ file_put_contents(OC::$SERVERROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
+} \ No newline at end of file
diff --git a/apps/calendar/appinfo/install.php b/apps/calendar/appinfo/install.php
deleted file mode 100644
index fc5cd892394..00000000000
--- a/apps/calendar/appinfo/install.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-if(!file_exists(OC::$WEBROOT.'/remote/caldav.php')){
- file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
-}
diff --git a/apps/calendar/appinfo/update.php b/apps/calendar/appinfo/update.php
index 13d711b84cb..ce7f304a499 100755
--- a/apps/calendar/appinfo/update.php
+++ b/apps/calendar/appinfo/update.php
@@ -14,7 +14,4 @@ if (version_compare($installedVersion, '0.2.1', '<')) {
$stmt = OCP\DB::prepare( 'UPDATE *PREFIX*calendar_calendars SET calendarcolor=? WHERE id=?' );
$r = $stmt->execute(array($color,$id));
}
-}
-if(!file_exists(OC::$WEBROOT.'/remote/caldav.php')){
- file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
} \ No newline at end of file