diff --git a/CHANGELOG.md b/CHANGELOG.md index 7086cb2d77e4b269412f5b0aed64cd6ee2004363..da391dde77e5ec17bb8cb7ddeccfb5be50ec8ae5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. - Changed code style to PSR-2 - addInstitution URL and email in disco-tpl.php are loaded from a config file - Templates are included from module perun +- Using of short array syntax (from array() to []) #### Fixed - Fixed the email address in footer diff --git a/themes/bbmri/default/includes/header.php b/themes/bbmri/default/includes/header.php index 0fb265aca5109787238b514912c17f52df555337..da9744a31fa7bdec46d0763ac9bb92e54f2ee6a6 100644 --- a/themes/bbmri/default/includes/header.php +++ b/themes/bbmri/default/includes/header.php @@ -5,25 +5,25 @@ use SimpleSAML\Module; /** * Support the htmlinject hook, which allows modules to change header, pre and post body on all pages. */ -$this->data['htmlinject'] = array( - 'htmlContentPre' => array(), - 'htmlContentPost' => array(), - 'htmlContentHead' => array(), -); +$this->data['htmlinject'] = [ + 'htmlContentPre' => [], + 'htmlContentPost' => [], + 'htmlContentHead' => [], +]; -$jquery = array(); +$jquery = []; if (array_key_exists('jquery', $this->data)) { $jquery = $this->data['jquery']; } if (array_key_exists('pageid', $this->data)) { - $hookinfo = array( + $hookinfo = [ 'pre' => &$this->data['htmlinject']['htmlContentPre'], 'post' => &$this->data['htmlinject']['htmlContentPost'], 'head' => &$this->data['htmlinject']['htmlContentHead'], 'jquery' => &$jquery, 'page' => $this->data['pageid'] - ); + ]; Module::callHooks('htmlinject', $hookinfo); }