From: Coleman Watts Date: Sat, 6 Jun 2015 02:19:36 +0000 (-0400) Subject: Static function fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=de18909aaca699da85a8ff6adccc634eac31529b;p=civicrm-core.git Static function fixes --- 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();