From de18909aaca699da85a8ff6adccc634eac31529b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 5 Jun 2015 22:19:36 -0400 Subject: [PATCH] Static function fixes --- CRM/Campaign/Page/DashBoard.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CRM/Campaign/Page/DashBoard.php b/CRM/Campaign/Page/DashBoard.php index 0a49c719de..595e09b751 100644 --- a/CRM/Campaign/Page/DashBoard.php +++ b/CRM/Campaign/Page/DashBoard.php @@ -52,10 +52,9 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page { * * @return array */ - public function &campaignActionLinks() { + public static function campaignActionLinks() { // check if variable _actionsLinks is populated if (!isset(self::$_campaignActionLinks)) { - $deleteExtra = ts('Are you sure you want to delete this Campaign?'); self::$_campaignActionLinks = array( CRM_Core_Action::UPDATE => array( 'name' => ts('Edit'), @@ -88,7 +87,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page { /** * @return array */ - public function &surveyActionLinks() { + public static function surveyActionLinks() { // check if variable _actionsLinks is populated if (!isset(self::$_surveyActionLinks)) { self::$_surveyActionLinks = array( @@ -123,7 +122,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page { /** * @return array */ - public function &petitionActionLinks() { + public static function petitionActionLinks() { if (!isset(self::$_petitionActionLinks)) { self::$_petitionActionLinks = self::surveyActionLinks(); self::$_petitionActionLinks[CRM_Core_Action::UPDATE] = array( @@ -299,7 +298,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page { * * @return array */ - public function getSurveySummary($params = array()) { + public static function getSurveySummary($params = array()) { $surveysData = array(); //get the survey. @@ -405,7 +404,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page { * * @return array */ - public function getPetitionSummary($params = array()) { + public static function getPetitionSummary($params = array()) { $config = CRM_Core_Config::singleton(); $petitionsData = array(); -- 2.25.1