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:
parent
3ec6c2ab26
commit
9a952df278
@ -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
6
carddav.php
Normal 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');
|
Loading…
Reference in New Issue
Block a user