Remove code for legacy php versions - assign_by_ref with an object
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 1 Jan 2023 01:25:04 +0000 (14:25 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 17 Jan 2023 02:35:05 +0000 (15:35 +1300)
CRM/Core/Smarty.php

index 483ef374baea205eac63e6b072809ea1c10630c4..4874e2b5424fac0f8d5f6215bba19d7a8f08c301 100644 (file)
@@ -117,8 +117,8 @@ class CRM_Core_Smarty extends Smarty {
     // add the session and the config here
     $session = CRM_Core_Session::singleton();
 
-    $this->assign_by_ref('config', $config);
-    $this->assign_by_ref('session', $session);
+    $this->assign('config', $config);
+    $this->assign('session', $session);
 
     $tsLocale = CRM_Core_I18n::getLocale();
     $this->assign('tsLocale', $tsLocale);