diff options
Diffstat (limited to 'apps/contacts')
-rw-r--r-- | apps/contacts/appinfo/remote.php | 4 | ||||
-rw-r--r-- | apps/contacts/carddav.php | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/apps/contacts/appinfo/remote.php b/apps/contacts/appinfo/remote.php index 9a34ecd4a4c..ef50e4ad39f 100644 --- a/apps/contacts/appinfo/remote.php +++ b/apps/contacts/appinfo/remote.php @@ -22,6 +22,10 @@ OCP\App::checkAppEnabled('contacts'); +if(substr($_SERVER["REQUEST_URI"],0,strlen(OC::$APPSWEBROOT . '/apps/contacts/carddav.php')) == OC::$APPSWEBROOT . '/apps/contacts/carddav.php'){ + $baseuri = OC::$APPSWEBROOT . '/apps/contacts/carddav.php'; +} + // only need authentication apps $RUNTIME_APPTYPES=array('authentication'); OC_App::loadApps($RUNTIME_APPTYPES); diff --git a/apps/contacts/carddav.php b/apps/contacts/carddav.php new file mode 100644 index 00000000000..e0579e625d7 --- /dev/null +++ b/apps/contacts/carddav.php @@ -0,0 +1,6 @@ +<?php +if(!file_exists('../../lib/base.php')){ + die('Please update the path to /lib/base.php in carddav.php or make use of /remote.php/carddav/'); +} +require_once('../../lib/base.php'); +require_once('appinfo/remote.php');
\ No newline at end of file |