Merge pull request #22627 from eileenmcnaughton/config
[civicrm-core.git] / tools / extensions / org.civicrm.angularex / angularex.civix.php
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)) {