1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Merge pull request #500 from owncloud/fix-typo

fix plural typo and grammar fix
This commit is contained in:
jbtbnl 2014-06-01 11:15:52 +02:00
commit 91745f5278
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ class Addressbook extends AbstractPIMCollection {
//\OCP\Util::writeLog('contacts', __METHOD__.' id: '.$id, \OCP\Util::DEBUG); //\OCP\Util::writeLog('contacts', __METHOD__.' id: '.$id, \OCP\Util::DEBUG);
if (!$this->hasPermission(\OCP\PERMISSION_READ)) { if (!$this->hasPermission(\OCP\PERMISSION_READ)) {
throw new \Exception( throw new \Exception(
self::$l10n->t('You do not have permissions to see this contacts'), self::$l10n->t('You do not have permissions to see this contact'),
Http::STATUS_FORBIDDEN Http::STATUS_FORBIDDEN
); );
} }

View File

@ -296,7 +296,7 @@ class Contact extends VObject\VCard implements IPIMObject {
} }
} else { } else {
if (!$this->getBackend()->hasContactMethodFor(\OCP\PERMISSION_CREATE)) { if (!$this->getBackend()->hasContactMethodFor(\OCP\PERMISSION_CREATE)) {
throw new \Exception(self::$l10n->t('This backend not support adding contacts'), 501); throw new \Exception(self::$l10n->t('This backend does not support adding contacts'), 501);
} }
$this->props['id'] = $this->getBackend()->createContact( $this->props['id'] = $this->getBackend()->createContact(
$this->getParent()->getId(), $this $this->getParent()->getId(), $this