From: eileen Date: Tue, 2 Jan 2024 08:31:22 +0000 (+1300) Subject: Remove smarty2 functions from sample code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=66e30200e6f21e257d58571076bb62c554c56055;p=civicrm-core.git Remove smarty2 functions from sample code --- diff --git a/templates/CRM/Campaign/Page/Petition/SocialNetwork.drupal b/templates/CRM/Campaign/Page/Petition/SocialNetwork.drupal index f30f5e8dea..532b342b11 100644 --- a/templates/CRM/Campaign/Page/Petition/SocialNetwork.drupal +++ b/templates/CRM/Campaign/Page/Petition/SocialNetwork.drupal @@ -68,11 +68,11 @@ and modify to fit your specific configuration. global $base_url; $this->assign('base_url', $base_url); - $email = $this->get_template_vars('email'); - $noscript = $this->get_template_vars('noscript'); - $petition_id = $this->get_template_vars('petition_id'); + $email = $this->getTemplateVars('email'); + $noscript = $this->getTemplateVars('noscript'); + $petition_id = $this->getTemplateVars('petition_id'); $node = getPetitionDrupalNodeData($petition_id); - $this->assign_by_ref('node', $node); + $this->assign('node', $node); {/php}