CRM-15603 - Standardize punctuation of 'You do not have permission to access this...
authorColeman Watts <coleman@civicrm.org>
Sun, 16 Nov 2014 01:48:48 +0000 (20:48 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 16 Nov 2014 13:41:36 +0000 (08:41 -0500)
30 files changed:
CRM/Activity/Form/Activity.php
CRM/Admin/Form/Options.php
CRM/Campaign/Form/SurveyType.php
CRM/Case/Form/Case.php
CRM/Case/Form/Task/Delete.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/ContributionPage/Delete.php
CRM/Contribute/Form/Task/Delete.php
CRM/Event/Form/ManageEvent.php
CRM/Event/Form/ManageEvent/Delete.php
CRM/Event/Form/Participant.php
CRM/Event/Form/Task/Delete.php
CRM/Grant/Form/Grant.php
CRM/Grant/Form/Task/Delete.php
CRM/Grant/Form/Task/Update.php
CRM/Mailing/Form/Browse.php
CRM/Mailing/Page/Browse.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipRenewal.php
CRM/Member/Form/Task/Delete.php
CRM/PCP/Form/PCP.php
CRM/Pledge/Form/Payment.php
CRM/Pledge/Form/Pledge.php
CRM/Pledge/Form/Task/Delete.php
CRM/Price/BAO/PriceSet.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php
CRM/Utils/System/Joomla.php
CRM/Utils/System/UnitTests.php
CRM/Utils/System/WordPress.php
tools/CRM/Auction/Form/Auction.php

index b314494f11f92b3669237719a3375acd8e5a00da..901d2cb1625280f762709c8ac0bd4a89550bf900 100644 (file)
@@ -259,7 +259,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
 
     if ($this->_action & CRM_Core_Action::DELETE) {
       if (!CRM_Core_Permission::check('delete activities')) {
-        CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+        CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
       }
     }
 
index 44f7665789a8b9d06821a81d9c4e8b5c33d446d3..089ba4b200e6f83e651113d4697f50a8989c55b9 100644 (file)
@@ -109,7 +109,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     if ($this->_id && in_array($this->_gName, CRM_Core_OptionGroup::$_domainIDGroups)) {
       $domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
       if (CRM_Core_Config::domainID() != $domainID) {
-        CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+        CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
       }
     }
   }
index 9ca07475eabb35b7ba3d40ced2e2112da571ad90..1e86b9b3462b69e5977aae650422f31e9b006c4b 100644 (file)
@@ -90,7 +90,7 @@ class CRM_Campaign_Form_SurveyType extends CRM_Admin_Form {
     if ($this->_id && in_array($this->_gName, CRM_Core_OptionGroup::$_domainIDGroups)) {
       $domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
       if (CRM_Core_Config::domainID() != $domainID) {
-        CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+        CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
       }
     }
   }
index 0b6abd1ff66e91161139a3970317071cdbf036e3..e7d3b431099a86c8a89f4402d9bec3f0b0383701 100644 (file)
@@ -114,7 +114,7 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
 
     //CRM-4418
     if (!CRM_Core_Permission::checkActionPermission('CiviCase', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     if ($this->_action & CRM_Core_Action::DELETE || $this->_action & CRM_Core_Action::RENEW) {
index b1e24895db057061dc8571a5b6d6697dd4fe2c3b..71549266114de923bbb9c6588582ebc9a6d1cac8 100644 (file)
@@ -63,7 +63,7 @@ class CRM_Case_Form_Task_Delete extends CRM_Case_Form_Task {
    */ function preProcess() {
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviCase', CRM_Core_Action::DELETE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
     parent::preProcess();
   }
index 128bf9c3ef90f7c203476fc118a2713d8010e45b..0d8e00cd5b2521e28401b8e0cab2d341cd0dc0d5 100644 (file)
@@ -241,7 +241,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
 
     //check permission for action.
     if (!CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     //@todo - if anyone ever figures out what this cdtype subroutine is about (or even if it still applies) please add comments
index e4da3b5a7b0922d1cb8b620bec8cc32200a0e6a3..45accd9a0f9fcd531ca2f55872ccb4c6f92f651a 100644 (file)
@@ -65,7 +65,7 @@ class CRM_Contribute_Form_ContributionPage_Delete extends CRM_Contribute_Form_Co
 
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     $dao = new CRM_Contribute_DAO_Contribution();
index 54947204b86f4655532b078fe82c38c415906de0..2fd4425187064dcbc51dc0b8f11b2fe2b0cd1b6a 100644 (file)
@@ -56,7 +56,7 @@ class CRM_Contribute_Form_Task_Delete extends CRM_Contribute_Form_Task {
    */ function preProcess() {
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviContribute', CRM_Core_Action::DELETE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
     parent::preProcess();
   }
index f8a3f0e413dfc539cd51bed083be3e6893507c08..039bd755eca9178859db790c3329476f138ad1d9 100644 (file)
@@ -120,7 +120,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
 
       // its an update mode, do a permission check
       if (!CRM_Event_BAO_Event::checkPermission($this->_id, CRM_Core_Permission::EDIT)) {
-        CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+        CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
       }
 
       $participantListingID = CRM_Utils_Array::value('participant_listing_id', $eventInfo);
index a239f7971579061fe6850786ce08fe942aa616d7..3167d5964e14ffc8542c0eee2ba252c8770b22f6 100644 (file)
@@ -63,7 +63,7 @@ class CRM_Event_Form_ManageEvent_Delete extends CRM_Event_Form_ManageEvent {
     }
 
     if (!CRM_Event_BAO_Event::checkPermission($this->_id, CRM_Core_Permission::DELETE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
   }
 
index d5a4a6593bfc2b7cc0c7602a257c3e84f4591fca..d25d32cf47ea59a875fd3d38dd74593e9989162f 100644 (file)
@@ -348,7 +348,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
 
     // check for edit permission
     if (!CRM_Core_Permission::checkActionPermission('CiviEvent', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     if ($this->_action & CRM_Core_Action::DELETE) {
index 69c3869a69846f10c8c519629a4f6a4f6d7dbb57..9735f7ee8726dde916eb9e62e7c70779bd430d9d 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
 
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviEvent', CRM_Core_Action::DELETE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
     parent::preProcess();
     foreach ($this->_participantIds as $participantId) {
index 1c8c6a90d2750c6d00d5e77184d2d92b53bc78c0..8c6e9c0babbfad0f75764478e3f49d7a43d74842 100644 (file)
@@ -87,7 +87,7 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form {
 
     //check permission for action.
     if (!CRM_Core_Permission::checkActionPermission('CiviGrant', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     $this->setPageTitle(ts('Grant'));
index 98203eac28da708b0b29017635921947ca54d367..61152876a42fbe6a9bd156be82ddeb9c9308c686 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Grant_Form_Task_Delete extends CRM_Grant_Form_Task {
 
     //check permission for delete.
     if (!CRM_Core_Permission::checkActionPermission('CiviGrant', CRM_Core_Action::DELETE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
   }
 
index 87d8ace324e0c4bcb2f74007e57d747b17e6f048..394d0f328f664fec16c618acd39e8169718ddd61 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Grant_Form_Task_Update extends CRM_Grant_Form_Task {
 
     //check permission for update.
     if (!CRM_Core_Permission::checkActionPermission('CiviGrant', CRM_Core_Action::UPDATE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
   }
 
index 4d501fc7ad22f935e4567d38e740cf37e770061a..fe2e55207080f8da0ddb1e6b2daa8821ba58c7cc 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Mailing_Form_Browse extends CRM_Core_Form {
 
     // check for action permissions.
     if (!CRM_Core_Permission::checkActionPermission('CiviMail', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     $mailing     = new CRM_Mailing_BAO_Mailing();
index 26728c156262bcaba148f8bb76e1951329a2e968..1ab348fe38823e4239c02bbaf52fc02f096882ca 100644 (file)
@@ -193,7 +193,7 @@ class CRM_Mailing_Page_Browse extends CRM_Core_Page {
 
         // check for action permissions.
         if (!CRM_Core_Permission::checkActionPermission('CiviMail', $this->_action)) {
-          CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+          CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
         }
 
         CRM_Mailing_BAO_Mailing::del($this->_mailingId);
index 5f5d5f6474d27a4690d207314eb379b13a0d7a18..f52a15dcc580af37ce30fde81d617e0eaf653e76 100644 (file)
@@ -120,7 +120,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
 
     // check for edit permission
     if (!CRM_Core_Permission::checkActionPermission('CiviMember', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     if ($this->_action & CRM_Core_Action::DELETE) {
index f0271a4f216acc561c43bbcc52018eaa165c3ea8..48e96187a22cacdeac939aaf85620a64b24d06b5 100644 (file)
@@ -94,7 +94,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form {
     parent::preProcess();
     // check for edit permission
     if (!CRM_Core_Permission::check('edit memberships')) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     $this->assign('endDate', CRM_Utils_Date::customFormat(CRM_Core_DAO::getFieldValue('CRM_Member_DAO_Membership',
index 6c1870a0bc84163efdf06b80f001512b42e6801d..455d9fd5038cc5d169ae7dbb643232a96b284ad3 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Member_Form_Task_Delete extends CRM_Member_Form_Task {
   function preProcess() {
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviMember', CRM_Core_Action::DELETE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
     parent::preProcess();
   }
index f0e52d80f2beab98b668437e18e0d5baf813ebe4..0b760556802429a14e3b1883e8e2cb068ff1ad28 100644 (file)
@@ -52,7 +52,7 @@ class CRM_PCP_Form_PCP extends CRM_Core_Form {
     if ($this->_action & CRM_Core_Action::DELETE) {
       //check permission for action.
       if (!CRM_Core_Permission::checkActionPermission('CiviEvent', $this->_action)) {
-        CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+        CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
       }
 
       $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
index 83b8f2336e04927417d510ed417e8eaa01bb38f6..1f733f6199b035f391c7382ad12325c50dfdae92 100644 (file)
@@ -56,7 +56,7 @@ class CRM_Pledge_Form_Payment extends CRM_Core_Form {
   public function preProcess() {
     // check for edit permission
     if (!CRM_Core_Permission::check('edit pledges')) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     $this->_id = CRM_Utils_Request::retrieve('ppId', 'Positive', $this);
index bce71ce4d2df00b09e2b8641de8e959d3f17d850..248cd4008ae32fc097bebbb50d025c55e48a1da5 100644 (file)
@@ -90,7 +90,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form {
 
     // check for action permissions.
     if (!CRM_Core_Permission::checkActionPermission('CiviPledge', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     $this->assign('action', $this->_action);
index 8f2d8942d8060a9e106fb3b90279983307cc7f7c..7784eff168709e16c2a7ab61b1a27518004b6c41 100644 (file)
@@ -56,7 +56,7 @@ class CRM_Pledge_Form_Task_Delete extends CRM_Pledge_Form_Task {
    */ function preProcess() {
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviPledge', CRM_Core_Action::DELETE)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
     parent::preProcess();
   }
index b5d8a155358afb40e1eca03542f4462a4c87b8ca..a071a7925be5b5118cbca851ce8d21ab3b36e21d 100644 (file)
@@ -1151,7 +1151,7 @@ WHERE  id = %1";
     if ($sid && self::eventPriceSetDomainID()) {
       $domain_id = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $sid, 'domain_id', 'id');
       if (CRM_Core_Config::domainID() != $domain_id) {
-        CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+        CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
       }
     }
     return TRUE;
index 7f915ac22c358e92268b4cae6358305f10e783f7..3020ab246928b48a504b0cc20c6fe5d9d84d0fb7 100644 (file)
@@ -982,7 +982,7 @@ self::eventPriceSetDomainID()
 ) {
 $domain_id = CRM_Core_DAO::getFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $sid, 'domain_id', 'id');
 if (CRM_Core_Config::domainID() != $domain_id) {
-CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
 }
 }
 return TRUE;
index 07ba3ed32dbf33f06f69e8ac01149d2fed3141af..a3400b0c22a11dc7f951a38ee3b239652b5d8d17 100644 (file)
@@ -594,7 +594,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
   }
 
   function permissionDenied() {
-    CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+    CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
   }
 
   function logout() {
index d78ee6a005df1d5bca3f893fe0acc032ef447ee3..9176383c85d4d29f9c06074711b721a462ca1cfd 100644 (file)
@@ -269,7 +269,7 @@ class CRM_Utils_System_UnitTests extends CRM_Utils_System_Drupal {
   }
 
   function permissionDenied() {
-    CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+    CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
   }
 
   function logout() {
index 54d6d0b84efeca85756b4c673c99c6c6b0b45f52..0c14597d9ae8f54044e225c6297dd973018c5eed 100644 (file)
@@ -446,7 +446,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
   }
 
   function permissionDenied() {
-    CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+    CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
   }
 
   function logout() {
index 3bc9a202a152b5ceb750fa34f41ff3779de345d5..72409dcca51bcbf8fa0c7b13ab4cb756303f2f6f 100644 (file)
@@ -67,7 +67,7 @@ class CRM_Auction_Form_Auction extends CRM_Core_Form {
     $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
 
     if (!CRM_Core_Permission::checkActionPermission('CiviAuction', $this->_action)) {
-      CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+      CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
     }
 
     if (($this->_action & CRM_Core_Action::VIEW ||