Skip to content

Commit

Permalink
Use constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 5, 2013
1 parent 3a71af8 commit 9e6abee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions kronolith/lib/Application.php
Expand Up @@ -32,6 +32,8 @@
* Horde_Registry_Application::). */
require_once HORDE_BASE . '/lib/core.php';

use Sabre\CalDAV;

class Kronolith_Application extends Horde_Registry_Application
{
/**
Expand Down Expand Up @@ -684,11 +686,11 @@ public function davGetCollections($user)
'uri' => $id,
'principaluri' => 'principals/' . $user,
'{DAV:}displayname' => Kronolith::getLabel($share),
'{urn:ietf:params:xml:ns:caldav}calendar-description' =>
'{' . CalDAV\Plugin::NS_CALDAV . '}calendar-description' =>
$share->get('desc'),
'{http://apple.com/ns/ical/}calendar-color' =>
$share->get('color'),
'{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set' => new Sabre\CalDAV\Property\SupportedCalendarComponentSet(array('VEVENT')),
'{' . CalDAV\Plugin::NS_CALDAV . '}supported-calendar-component-set' => new CalDAV\Property\SupportedCalendarComponentSet(array('VEVENT')),
);
}
return $calendars;
Expand Down
7 changes: 5 additions & 2 deletions turba/lib/Application.php
Expand Up @@ -34,6 +34,9 @@
* Horde_Registry_Application::). */
require_once HORDE_BASE . '/lib/core.php';

use Sabre\CalDAV;
use Sabre\CardDAV;

class Turba_Application extends Horde_Registry_Application
{
/**
Expand Down Expand Up @@ -648,8 +651,8 @@ public function davGetCollections($user)
'uri' => $id,
'principaluri' => 'principals/' . $user,
'{DAV:}displayname' => $book['title'],
'{urn:ietf:params:xml:ns:carddav}supported-address-data'
=> new Sabre\CardDAV\Property\SupportedAddressData(
'{' . CardDAV\Plugin::NS_CARDDAV . '}supported-address-data'
=> new CardDAV\Property\SupportedAddressData(
array(
array(
'contentType' => 'text/directory',
Expand Down

0 comments on commit 9e6abee

Please sign in to comment.