Merge pull request #4696 from colemanw/CRM-15669
[civicrm-core.git] / CRM / PCP / Page / PCPInfo.php
index 56a5287d5921f8a7b62c050dbba6f3528c9fd1b3..f92e7c598ed3f01d108705b6219292e037962810 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -47,10 +47,9 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page {
    * Finally it calls the parent's run method.
    *
    * @return void
-   * @access public
    *
    */
-  function run() {
+  public function run() {
     $session         = CRM_Core_Session::singleton();
     $config          = CRM_Core_Config::singleton();
     $permissionCheck = FALSE;
@@ -161,6 +160,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)'),
@@ -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();
   }
 }
-