Merge pull request #22986 from colemanw/afformFixBlocksAgain
[civicrm-core.git] / ext / legacycustomsearches / legacycustomsearches.civix.php
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)) {