Skip to content
Snippets Groups Projects
Commit 101406eb authored by Georg Ehrke's avatar Georg Ehrke
Browse files

fix writing in remote folder

parent 2facf509
No related branches found
No related tags found
No related merge requests found
...@@ -23,3 +23,6 @@ OCP\App::addNavigationEntry( array( ...@@ -23,3 +23,6 @@ OCP\App::addNavigationEntry( array(
'name' => $l->t('Calendar'))); 'name' => $l->t('Calendar')));
OCP\App::registerPersonal('calendar', 'settings'); OCP\App::registerPersonal('calendar', 'settings');
OC_Search::registerProvider('OC_Search_Provider_Calendar'); 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
<?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'));
}
...@@ -14,7 +14,4 @@ if (version_compare($installedVersion, '0.2.1', '<')) { ...@@ -14,7 +14,4 @@ if (version_compare($installedVersion, '0.2.1', '<')) {
$stmt = OCP\DB::prepare( 'UPDATE *PREFIX*calendar_calendars SET calendarcolor=? WHERE id=?' ); $stmt = OCP\DB::prepare( 'UPDATE *PREFIX*calendar_calendars SET calendarcolor=? WHERE id=?' );
$r = $stmt->execute(array($color,$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
...@@ -25,3 +25,6 @@ OCP\App::addNavigationEntry( array( ...@@ -25,3 +25,6 @@ OCP\App::addNavigationEntry( array(
OCP\App::registerPersonal('contacts','settings'); OCP\App::registerPersonal('contacts','settings');
OCP\Util::addscript('contacts', 'loader'); OCP\Util::addscript('contacts', 'loader');
OC_Search::registerProvider('OC_Search_Provider_Contacts'); OC_Search::registerProvider('OC_Search_Provider_Contacts');
if(!file_exists(OC::$SERVERROOT.'/remote/carddav.php')){
file_put_contents(OC::$SERVERROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
}
\ No newline at end of file
<?php
if(!file_exists(OC::$WEBROOT.'/remote/carddav.php')){
file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
}
<?php
if(!file_exists(OC::$WEBROOT.'/remote/carddav.php')){
file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
}
\ No newline at end of file
...@@ -9,3 +9,6 @@ OCP\App::registerAdmin('files','admin'); ...@@ -9,3 +9,6 @@ OCP\App::registerAdmin('files','admin');
OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") )); OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") ));
OC_Search::registerProvider('OC_Search_Provider_File'); OC_Search::registerProvider('OC_Search_Provider_File');
if(!file_exists(OC::$SERVERROOT.'/remote/webdav.php')){
file_put_contents(OC::$SERVERROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php'));
}
\ No newline at end of file
<?php
if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){
file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php'));
}
<?php
if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){
file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php'));
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment