From: Tim Otten Date: Mon, 3 Mar 2014 08:27:39 +0000 (-0800) Subject: Invoker cleanup - Fix AJAX callbacks which misuse '::' notation X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a56a48be11f8e7f67b4163f6ad68b07cffb51d4a;p=civicrm-core.git Invoker cleanup - Fix AJAX callbacks which misuse '::' notation --- diff --git a/CRM/Member/Page/AJAX.php b/CRM/Member/Page/AJAX.php index 7008b4f4c0..65c814a0ea 100644 --- a/CRM/Member/Page/AJAX.php +++ b/CRM/Member/Page/AJAX.php @@ -41,7 +41,7 @@ class CRM_Member_Page_AJAX { /** * Function to setDefaults according to membership type */ - function getMemberTypeDefaults($config) { + static function getMemberTypeDefaults() { if (!$_POST['mtype']) { $details['name'] = ''; $details['auto_renew'] = ''; diff --git a/CRM/Pledge/Page/AJAX.php b/CRM/Pledge/Page/AJAX.php index 2469d855a1..14517c6871 100644 --- a/CRM/Pledge/Page/AJAX.php +++ b/CRM/Pledge/Page/AJAX.php @@ -41,7 +41,7 @@ class CRM_Pledge_Page_AJAX { /** * Function for building Pledge Name combo box */ - function pledgeName(&$config) { + static function pledgeName() { $getRecords = FALSE; if (isset($_GET['name']) && $_GET['name']) {