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

Change app path logic in templates

This commit is contained in:
Brice Maron 2012-06-06 19:54:57 +00:00
parent 84975f6f7c
commit a7baf611f0

View File

@ -22,8 +22,8 @@
OCP\App::checkAppEnabled('contacts'); OCP\App::checkAppEnabled('contacts');
if(substr($_SERVER["REQUEST_URI"],0,strlen(OC::$APPSWEBROOT . '/apps/contacts/carddav.php')) == OC::$APPSWEBROOT . '/apps/contacts/carddav.php'){ if(substr($_SERVER["REQUEST_URI"],0,strlen(OC_App::getAppWebPath('contacts').'/carddav.php')) == OC_App::getAppWebPath('contacts').'/carddav.php'){
$baseuri = OC::$APPSWEBROOT . '/apps/contacts/carddav.php'; $baseuri = OC_App::getAppWebPath('contacts').'/carddav.php';
} }
// only need authentication apps // only need authentication apps