[NFC] Add in convertDeprecationsToExceptions='true' to core extension's phpunit.xml...
[civicrm-core.git] / ext / oauth-client / oauth_client.civix.php
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)) {