1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

add caldav and carddav files in their old place for backward compatibility - add rewriterule for caldav and carddav

This commit is contained in:
Georg Ehrke 2012-05-16 21:05:15 +02:00
parent 3ec6c2ab26
commit 9a952df278
2 changed files with 10 additions and 0 deletions

View File

@ -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);

6
carddav.php Normal file
View File

@ -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');