summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-07-10 14:55:03 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-07-14 14:11:43 +0200
commit140263003afd35360a734fab7b32ca7b0dcbb3a0 (patch)
tree2b8cc793cf353428078a246196f4297f244ea4d2 /apps
parentd45d73eecfcc4cff7e7edba8678509e78bec7e07 (diff)
downloadnextcloud-server-140263003afd35360a734fab7b32ca7b0dcbb3a0.tar.gz
nextcloud-server-140263003afd35360a734fab7b32ca7b0dcbb3a0.zip
Give default address book a more intuitive name and replace spaces with underscores in uri.
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/lib/addressbook.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/lib/addressbook.php b/apps/contacts/lib/addressbook.php
index a31ee25461d..9d584ff6d61 100644
--- a/apps/contacts/lib/addressbook.php
+++ b/apps/contacts/lib/addressbook.php
@@ -133,7 +133,7 @@ class OC_Contacts_Addressbook{
if(is_null($uid)) {
$uid = OCP\USER::getUser();
}
- $id = self::add($uid,'default','Default Address Book');
+ $id = self::add($uid,'Contacts','Default Address Book');
if($id !== false) {
self::setActive($id, true);
}
@@ -306,7 +306,7 @@ class OC_Contacts_Addressbook{
* @return string new name
*/
public static function createURI($name,$existing){
- $name = strtolower($name);
+ $name = str_replace(' ', '_', strtolower($name));
$newname = $name;
$i = 1;
while(in_array($newname,$existing)){