X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPCP%2FPage%2FPCPInfo.php;h=e342958fffa551469316557e90bd81dcd1803b5c;hb=3c0b6a408b43c445479c26dd56e7d3de5f062c99;hp=8fec4c70e29edba3b823e9418cc48d2c2661e1ce;hpb=c90a093af5607c80a76a7af50f76d2c1d5bf4f37;p=civicrm-core.git diff --git a/CRM/PCP/Page/PCPInfo.php b/CRM/PCP/Page/PCPInfo.php index 8fec4c70e2..e342958fff 100644 --- a/CRM/PCP/Page/PCPInfo.php +++ b/CRM/PCP/Page/PCPInfo.php @@ -161,6 +161,7 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page { $hints = array( CRM_Core_Action::UPDATE => ts('Change the content and appearance of your page'), CRM_Core_Action::DETACH => ts('Send emails inviting your friends to support your campaign!'), + CRM_Core_Action::VIEW => ts('Copy this link to share directly with your network!'), CRM_Core_Action::BROWSE => ts('Update your personal contact information'), CRM_Core_Action::DISABLE => ts('De-activate the page (you can re-activate it later)'), CRM_Core_Action::ENABLE => ts('Activate the page (you can de-activate it later)'), @@ -194,7 +195,9 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page { $honor = CRM_PCP_BAO_PCP::honorRoll($this->_id); - if ($fileInfo = reset(CRM_Core_BAO_File::getEntityFile('civicrm_pcp', $this->_id))) { + $entityFile = CRM_Core_BAO_File::getEntityFile('civicrm_pcp', $this->_id); + if (!empty($entityFile)) { + $fileInfo = reset($entityFile); $fileId = $fileInfo['fileID']; $image = '_id}" @@ -328,6 +331,9 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page { parent::run(); } + /** + * @return string + */ function getTemplateFileName() { if ($this->_id) { $templateFile = "CRM/PCP/Page/{$this->_id}/PCPInfo.tpl";