Merge pull request #23500 from civicrm/5.50
[civicrm-core.git] / ext / sequentialcreditnotes / sequentialcreditnotes.civix.php
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)) {