From 3738d071f86aa5016ce326a009a278085b41fb48 Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 30 Sep 2016 17:08:20 +0200 Subject: remove long array syntax --- includes/sys_template.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index 43ca66f2..829d45bc 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -3,12 +3,12 @@ /** * Liste der verfügbaren Themes */ -$themes = array( +$themes = [ '3' => "Engelsystem 32c3", "2" => "Engelsystem cccamp15", "0" => "Engelsystem light", "1" => "Engelsystem dark" -); +]; /** * Display muted (grey) text. @@ -56,7 +56,7 @@ function heading($content, $number = 1) { * @param array $items * @return string */ -function toolbar($items = array(), $right = false) { +function toolbar($items = [], $right = false) { return ''; } @@ -199,7 +199,7 @@ function form_checkboxes($name, $label, $items, $selected) { * @param * disabled Wie selected, nur dass die entsprechenden Checkboxen deaktiviert statt markiert sind */ -function form_multi_checkboxes($names, $label, $items, $selected, $disabled = array()) { +function form_multi_checkboxes($names, $label, $items, $selected, $disabled = []) { $html = ""; foreach ($names as $title) { $html .= ""; @@ -399,11 +399,11 @@ function button_glyph($href, $glyph, $class = "") { /** * Rendert eine Toolbar mit Knöpfen */ -function buttons($buttons = array ()) { +function buttons($buttons = []) { return '
' . table_buttons($buttons) . '
'; } -function table_buttons($buttons = array()) { +function table_buttons($buttons = []) { return '
' . join(' ', $buttons) . '
'; } -- cgit v1.2.3-54-g00ecf
$title