Skip to content

Commit

Permalink
Remove deprecated language construct
Browse files Browse the repository at this point in the history
Per totten/civix#235 this language construct
appears to be getting more noisy about being bad....
  • Loading branch information
eileenmcnaughton committed Jan 26, 2022
1 parent 3202de2 commit 6f2b055
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 46 deletions.
4 changes: 2 additions & 2 deletions ext/afform/admin/afform_admin.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/afform/core/afform.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/afform/html/afform_html.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/afform/mock/afform_mock.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/authx/authx.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/civigrant/civigrant.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/ckeditor4/ckeditor4.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/eventcart/eventcart.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/ewaysingle/ewaysingle.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/financialacls/financialacls.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/flexmailer/flexmailer.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/greenwich/greenwich.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/legacycustomsearches/legacycustomsearches.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/message_admin/message_admin.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/oauth-client/oauth_client.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
5 changes: 3 additions & 2 deletions ext/payflowpro/payflowpro.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/recaptcha/recaptcha.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/search_kit/search_kit.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions ext/sequentialcreditnotes/sequentialcreditnotes.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions tests/extensions/shimmy/shimmy.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions tools/extensions/org.civicrm.angularex/angularex.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions tools/extensions/org.civicrm.demoqueue/demoqueue.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6f2b055

Please sign in to comment.