Invoker cleanup - Fix AJAX callbacks which misuse '::' notation
authorTim Otten <totten@civicrm.org>
Mon, 3 Mar 2014 08:27:39 +0000 (00:27 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 3 Mar 2014 08:27:39 +0000 (00:27 -0800)
CRM/Member/Page/AJAX.php
CRM/Pledge/Page/AJAX.php

index 7008b4f4c0890feabda3c6091b007afd0ea5ffab..65c814a0ea32bc18599f9e3098ad413b9cea23f2 100644 (file)
@@ -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'] = '';
index 2469d855a15064bbe5eab704a5fa287f5df1be86..14517c687151f584d065d1e2010b30cee0a26569 100644 (file)
@@ -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']) {