Add noisy deprecation to deprecated function, after universe search
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 24 Feb 2023 02:39:59 +0000 (15:39 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 24 Feb 2023 02:39:59 +0000 (15:39 +1300)
CRM/Utils/Token.php

index 3ad3618dadb44ab30d50a04cd5c7634c146a2897..f29df131b7342ee86d26a91e539b233360cc3270 100644 (file)
@@ -723,6 +723,7 @@ class CRM_Utils_Token {
    * @deprecated
    */
   public static function parseThroughSmarty($tokenHtml, $entity, $entityType = 'contact') {
+    CRM_Core_Error::deprecatedFunctionWarning('no replacement');
     if (defined('CIVICRM_MAIL_SMARTY') && CIVICRM_MAIL_SMARTY) {
       $smarty = CRM_Core_Smarty::singleton();
       // also add the tokens to the template