X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tools%2Fextensions%2Forg.civicrm.demoqueue%2Fdemoqueue.civix.php;h=2f643279ded3e7b1b0b4e2c96454c96a8543a2c1;hb=b7c0a88f00c3003c0794c0003ac74dde8ca60293;hp=cfc2973f96640caf8fd2d8bf61bfb5d9c4fe56b6;hpb=06fbcddae0c6ccadc07423357a054c5871b5bd1a;p=civicrm-core.git diff --git a/tools/extensions/org.civicrm.demoqueue/demoqueue.civix.php b/tools/extensions/org.civicrm.demoqueue/demoqueue.civix.php index cfc2973f96..2f643279de 100644 --- a/tools/extensions/org.civicrm.demoqueue/demoqueue.civix.php +++ b/tools/extensions/org.civicrm.demoqueue/demoqueue.civix.php @@ -9,17 +9,18 @@ function _demoqueue_civix_civicrm_config(&$config) { $template =& CRM_Core_Smarty::singleton(); - $extRoot = dirname( __FILE__ ) . DIRECTORY_SEPARATOR; + $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR; $extDir = $extRoot . 'templates'; - if ( is_array( $template->template_dir ) ) { - array_unshift( $template->template_dir, $extDir ); - } else { - $template->template_dir = array( $extDir, $template->template_dir ); + if (is_array($template->template_dir)) { + array_unshift($template->template_dir, $extDir); + } + else { + $template->template_dir = [$extDir, $template->template_dir]; } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path( ); - set_include_path( $include_path ); + $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); + set_include_path($include_path); } /**