Remove smarty2 functions from sample code
authoreileen <emcnaughton@wikimedia.org>
Tue, 2 Jan 2024 08:31:22 +0000 (21:31 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 2 Jan 2024 08:31:22 +0000 (21:31 +1300)
templates/CRM/Campaign/Page/Petition/SocialNetwork.drupal

index f30f5e8dea272166d49802df2537682dbd77fccc..532b342b1137eb42db089d87b6e7db006934adc1 100644 (file)
@@ -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}