diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index ffcca50b34..46e85a09d1 100644 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -13,5 +13,5 @@ OC_Util::addStyle('contacts','styles'); inc("part.details"); ?> - t('The path to this addressbook is %s', array(OC::$WEBROOT.'/apps/contacts/carddav.php/addressbooks/'.OC_User::getUser().'/'.$_['addressbooks'][0]['uri'])); ?> + t('The path to this addressbook is %s', array(((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/apps/contacts/carddav.php/addressbooks/'.OC_User::getUser().'/'.$_['addressbooks'][0]['uri'])); ?> diff --git a/apps/contacts/temporaryupdate.php b/apps/contacts/temporaryupdate.php deleted file mode 100644 index 4b6453364e..0000000000 --- a/apps/contacts/temporaryupdate.php +++ /dev/null @@ -1,33 +0,0 @@ -. - * - */ -// Init owncloud -require_once('../../lib/base.php'); -$connector = new OC_Connector_Sabre_Principal; -$users = OC_User::getUsers(); - -foreach($users as $user){ - $foo = $connector->getPrincipalByPath('principals/'.$user); - if(!isset($foo)){ - OC_Connector_Sabre_Principal::addPrincipal(array('uid'=>$user)); - } -} -echo "done"; \ No newline at end of file