CRM_Core_Page_File - More consistent capitalization/prose
authorTim Otten <totten@civicrm.org>
Fri, 22 Feb 2019 06:45:45 +0000 (22:45 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 22 Feb 2019 06:45:45 +0000 (22:45 -0800)
CRM/Core/Page/File.php

index 18ed83690f7a4d9af2b7595c58bdc57bc5753c7d..2a9ec348fbada425c99610ce04a1dbac6e8f337d 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Core_Page_File extends CRM_Core_Page {
     $fileId = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE); // File ID
     $fileName = CRM_Utils_Request::retrieve('filename', 'String', $this, FALSE);
     if (empty($fileName) && (empty($entityId) || empty($fileId))) {
-      CRM_Core_Error::statusBounce("Either FIlename or Entity ID and FIle Id need to be passed in to retrieve files");
+      CRM_Core_Error::statusBounce("Cannot access file: Must pass either \"Filename\" or the combination of \"Entity ID\" + \"File ID\"");
     }
     $hash = CRM_Utils_Request::retrieve('fcs', 'Alphanumeric', $this);
     if (!CRM_Core_BAO_File::validateFileHash($hash, $entityId, $fileId) && empty($fileName)) {