diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-27 13:14:55 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 09:14:41 +0100 |
commit | 6a2dde64009fdffc6483b920717721634348a12f (patch) | |
tree | 83f18063b86de35406dad2654690db0a16298e4c /apps/dav/lib/carddav/addressbookroot.php | |
parent | dcfd089a6caed18f040284802cb3fe7e5475c4c5 (diff) | |
download | nextcloud-server-6a2dde64009fdffc6483b920717721634348a12f.tar.gz nextcloud-server-6a2dde64009fdffc6483b920717721634348a12f.zip |
user and system addressbooks are now living in sub folders
Diffstat (limited to 'apps/dav/lib/carddav/addressbookroot.php')
-rw-r--r-- | apps/dav/lib/carddav/addressbookroot.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/dav/lib/carddav/addressbookroot.php b/apps/dav/lib/carddav/addressbookroot.php index ee99ac8d798..8c78d024556 100644 --- a/apps/dav/lib/carddav/addressbookroot.php +++ b/apps/dav/lib/carddav/addressbookroot.php @@ -20,4 +20,14 @@ class AddressBookRoot extends \Sabre\CardDAV\AddressBookRoot { } -}
\ No newline at end of file + function getName() { + + // Grabbing all the components of the principal path. + $parts = explode('/', $this->principalPrefix); + + // We are only interested in the second part. + return $parts[1]; + + } + +} |