Remove deprecated language construct
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 26 Jan 2022 05:10:04 +0000 (18:10 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 26 Jan 2022 05:10:52 +0000 (18:10 +1300)
Per https://github.com/totten/civix/pull/235 this language construct
appears to be getting more noisy about being bad....

23 files changed:
ext/afform/admin/afform_admin.civix.php
ext/afform/core/afform.civix.php
ext/afform/html/afform_html.civix.php
ext/afform/mock/afform_mock.civix.php
ext/authx/authx.civix.php
ext/civigrant/civigrant.civix.php
ext/ckeditor4/ckeditor4.civix.php
ext/contributioncancelactions/contributioncancelactions.civix.php
ext/eventcart/eventcart.civix.php
ext/ewaysingle/ewaysingle.civix.php
ext/financialacls/financialacls.civix.php
ext/flexmailer/flexmailer.civix.php
ext/greenwich/greenwich.civix.php
ext/legacycustomsearches/legacycustomsearches.civix.php
ext/message_admin/message_admin.civix.php
ext/oauth-client/oauth_client.civix.php
ext/payflowpro/payflowpro.civix.php
ext/recaptcha/recaptcha.civix.php
ext/search_kit/search_kit.civix.php
ext/sequentialcreditnotes/sequentialcreditnotes.civix.php
tests/extensions/shimmy/shimmy.civix.php
tools/extensions/org.civicrm.angularex/angularex.civix.php
tools/extensions/org.civicrm.demoqueue/demoqueue.civix.php

index 132b74923975f9fa793a5e86fdde9986bc0a39e9..3071d542f3a9dd5ab293ab4d6e50eb2e61f92506 100644 (file)
@@ -91,9 +91,9 @@ function _afform_admin_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index b33d0cce1b2bbf638c4ce114f5318b463d22c89d..ae7b0c0fa4b77d7ca67f748811b7f4e7aab22b73 100644 (file)
@@ -91,9 +91,9 @@ function _afform_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 8d7ccb562601ce2ff887754d26b6b5da5a4a6b61..80d673e53a4a4bccb8292af25d88148c8c7b5787 100644 (file)
@@ -91,9 +91,9 @@ function _afform_html_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 9714aef7d9ae22f0924ee0cf3651ec25a98a0640..b28d2639015720e3caeea2205003f93d006af5d7 100644 (file)
@@ -91,9 +91,9 @@ function _afform_mock_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 6a25c05c5c0e5bdf915e3c77cc0f0855ab433d62..3320d7a45114ee68358264b7f83dc0d6c10c7353 100644 (file)
@@ -91,9 +91,9 @@ function _authx_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 2d59c9e814b792e281d0a96a54237e4961a059a8..dcf1934b5b1b176bc9efcb929e4e61bb2b47dea4 100644 (file)
@@ -91,9 +91,9 @@ function _civigrant_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index bb862286b56836f51e6b785381edfeb09c06c4d8..17a0475106c58c4cc76a67ab0ce02ec13e0f3551 100644 (file)
@@ -91,9 +91,9 @@ function _ckeditor4_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 7f1e9712e94929d92036d5f1ba1bf2b1152e4d76..af68033f7b1e259a31748ee1f92fd1ce719cfd5a 100644 (file)
@@ -91,9 +91,9 @@ function _contributioncancelactions_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index bec41bc7f2e406f56470f5515f8b32ea5f1d44eb..bdce986d6ec8cac52e61d01e762beca3c18fedf2 100644 (file)
@@ -91,9 +91,9 @@ function _eventcart_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 474030a1c24a82dd3f826d1c55f631aba03d4986..d94d1fa614c6f48c22ead5b6cf8b974e2c11d171 100644 (file)
@@ -91,9 +91,9 @@ function _ewaysingle_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index d9ade0d325f3c50c1ddfcf8f02cc1153fb141cb0..6948a1e926582c1852ecec49148c1e260030b606 100644 (file)
@@ -91,9 +91,9 @@ function _financialacls_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 0935d49cc32fd53f7720e5f6459da168a3a6b241..becfec49fc2e5b23b0f1147c59a58309d4cc03fa 100644 (file)
@@ -91,9 +91,9 @@ function _flexmailer_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index a1903f1e9080d0accca211a24a4ba0017ecc7469..c7649fd1e97aa9f7cf85417997d0d1618d10b0e8 100644 (file)
@@ -91,9 +91,9 @@ function _greenwich_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 25b8eb3f5a61b5135ab46c12b9d2cf4efde30fd1..3cb227a420658792f2b8fabadb30fa7946f9eaba 100644 (file)
@@ -91,9 +91,9 @@ function _legacycustomsearches_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 3de3912c36558772205430f42214e5b313a62d87..483d0b9c07de561c071c2d2bd50d4571475d5ead 100644 (file)
@@ -91,9 +91,9 @@ function _message_admin_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index f4fc3b04680b0b0cae0b4711363c39d34ad20094..3d9ae5d3f523f062ef5fa5a3b608c0eca9dfb785 100644 (file)
@@ -91,9 +91,9 @@ function _oauth_client_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 981716e9d649b29cb3d41b777bd1c5be80a92756..02c9abccac903666a27290e5a44e6c249b7f62f9 100644 (file)
@@ -91,9 +91,10 @@ function _payflowpro_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__
+    . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 3b0feb388075b8b465eead4a910e6169a222ad06..dc51b7677d30e4825d2dfc58400a451b6e486b10 100644 (file)
@@ -91,9 +91,9 @@ function _recaptcha_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index dde94ac93763bc231a11aac7d87ee1abff5e07a3..6cac24cef1d1b9f3a60d3e24e6ce06b960a1869c 100644 (file)
@@ -91,9 +91,9 @@ function _search_kit_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 260b7128fcafd6343a6099272ec6d3b0a823a885..098dde7d07c739068f8d7674994a53d132da7e4a 100644 (file)
@@ -91,9 +91,9 @@ function _sequentialcreditnotes_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 33dce52cbfcc800479e01784105d0815ca26e5fd..8ed705ff741256c78637d1195ad6ad8788f42cf2 100644 (file)
@@ -98,9 +98,9 @@ function _shimmy_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 308a7699e560a8edeb090f44583bf378d0042852..3943cced7049f6910832a0b1ead8d301c3897fec 100644 (file)
@@ -91,9 +91,9 @@ function _angularex_civix_civicrm_config(&$config = NULL) {
   }
   $configured = TRUE;
 
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {
index 2f643279ded3e7b1b0b4e2c96454c96a8543a2c1..b722efa38f45ac44bd552ed07220bb49a8a90aae 100644 (file)
@@ -7,9 +7,9 @@
  * @param $config
  */
 function _demoqueue_civix_civicrm_config(&$config) {
-  $template =& CRM_Core_Smarty::singleton();
+  $template = CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
+  $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
   if (is_array($template->template_dir)) {