Merge pull request #10977 from jitendrapurohit/CRM-21160
[civicrm-core.git] / CRM / Contribute / Tokens.php
index 40a5c832a9beeb8cf8fc7ec5818c657fc44c27f5..441906fa7e77d7ca39d2786ddb898260d48df4e5 100644 (file)
@@ -85,7 +85,7 @@ class CRM_Contribute_Tokens extends \Civi\Token\AbstractTokenSubscriber {
     $tokens['source'] = ts('Contribution Source');
     $tokens['status'] = ts('Contribution Status');
     $tokens['type'] = ts('Financial Type');
-    $tokens = array_merge($tokens, $this->getCustomTokens('Contribution'));
+    $tokens = array_merge($tokens, CRM_Utils_Token::getCustomFieldTokens('Contribution'));
     parent::__construct('contribution', $tokens);
   }