X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPCP%2FPage%2FPCPInfo.php;h=f92e7c598ed3f01d108705b6219292e037962810;hb=fa92b4af1c4abf280689cea6445c7a9b99858831;hp=c41c626e61db13aa6094829ffa60213375bd518e;hpb=c974760493c0527ff101a9bed6131714b1fda428;p=civicrm-core.git diff --git a/CRM/PCP/Page/PCPInfo.php b/CRM/PCP/Page/PCPInfo.php index c41c626e61..f92e7c598e 100644 --- a/CRM/PCP/Page/PCPInfo.php +++ b/CRM/PCP/Page/PCPInfo.php @@ -1,9 +1,9 @@ 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)'), @@ -269,7 +269,7 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page { if ($validDate) { $contributionText = ts('Contribute Now'); - if (CRM_Utils_Array::value('donate_link_text', $pcpInfo)) { + if (!empty($pcpInfo['donate_link_text'])) { $contributionText = $pcpInfo['donate_link_text']; } @@ -330,7 +330,10 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page { parent::run(); } - function getTemplateFileName() { + /** + * @return string + */ + public function getTemplateFileName() { if ($this->_id) { $templateFile = "CRM/PCP/Page/{$this->_id}/PCPInfo.tpl"; $template = &CRM_Core_Page::getTemplate(); @@ -341,4 +344,3 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page { return parent::getTemplateFileName(); } } -