From: Donald A. Lobo Date: Mon, 18 Nov 2013 16:21:43 +0000 (-0800) Subject: more static function fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b1825647aa9ca44c37e41998b330e110d721547c;p=civicrm-core.git more static function fixes --- 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();