From b1825647aa9ca44c37e41998b330e110d721547c Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 18 Nov 2013 08:21:43 -0800 Subject: [PATCH] more static function fixes --- CRM/Contact/Page/AJAX.php | 2 +- CRM/Contribute/BAO/Contribution.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index 478112dedd..035f3900d9 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -1134,7 +1134,7 @@ LIMIT {$offset}, {$rowCount} /** * Function to retrieve Paper Size dimensions */ - function paperSize() { + static function paperSize() { $paperSizeName = CRM_Utils_Type::escape($_REQUEST['paperSizeName'], 'String'); $paperSize = CRM_Core_BAO_PaperSize::getByName($paperSizeName); diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 5783c21aea..f98bf898be 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -1304,7 +1304,7 @@ LEFT JOIN civicrm_contribution contribution ON ( componentPayment.contribution_ /** * This function update contribution as well as related objects. */ - function transitionComponents($params, $processContributionObject = FALSE) { + static function transitionComponents($params, $processContributionObject = FALSE) { // get minimum required values. $contactId = CRM_Utils_Array::value('contact_id', $params); $componentId = CRM_Utils_Array::value('component_id', $params); @@ -1737,7 +1737,7 @@ LEFT JOIN civicrm_contribution contribution ON ( componentPayment.contribution_ * @return array $ids containing organization id and individual id * @access public */ - function getOnbehalfIds($contributionId, $contributorId = NULL) { + static function getOnbehalfIds($contributionId, $contributorId = NULL) { $ids = array(); -- 2.25.1